You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,21 @@ Just add your translation to the desired localization file. If Polyglot encounte
274
274
275
275
But please note that if you have [premium](https://polyglot.rocks/#pricing) plan and you added your translation before AI-translation - you won't get our manual translation. If you want to replace your translation with the manual one, just delete the line with it from the localization file. The next time you run Polyglot, it will process this line as usual.
276
276
277
+
### How I can limit the translation length?
278
+
279
+
You can use `// polyglot:max_length:<number>` comment before the line. As an argument, specify the maximum length of the translation in characters. For example:
280
+
281
+
```bash
282
+
// polyglot:max_length:15
283
+
"Saved successfully" = "Saved successfully";
284
+
```
285
+
286
+
AI will take this into account when translating, but there is no guarantee that it will fulfill the condition. The human will try to translate with the condition in mind. If he does not succeed, he will leave a comment along with the translation option as to why it is not possible. You will see the comment at the end of the translation line:
287
+
288
+
```bash
289
+
"CUSTOM_STRING" = "Personnalisé"; // translator comment: "Condition is too hard"
290
+
```
291
+
277
292
We hope this helps! If you have any other questions, please do not hesitate to ask.
0 commit comments