transduck 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend.js +6 -2
- package/package.json +1 -1
- package/src/backend.ts +6 -2
package/dist/backend.js
CHANGED
|
@@ -10,8 +10,12 @@ const PLURAL_SYSTEM_TEMPLATE = 'You are a professional translator. You will be g
|
|
|
10
10
|
'(one and other) in {source_lang}. Generate ALL plural forms needed in ' +
|
|
11
11
|
'{target_lang} according to CLDR plural rules. Return ONLY a JSON object ' +
|
|
12
12
|
'mapping plural categories to translated strings. Do not include explanation.\n\n' +
|
|
13
|
-
'
|
|
14
|
-
'
|
|
13
|
+
'CRITICAL: Placeholders like {count}, {name}, %s, ${value} are SOFTWARE VARIABLES ' +
|
|
14
|
+
'that will be replaced by code at runtime. You MUST include them exactly as written ' +
|
|
15
|
+
'in EVERY plural form, even for zero, one, and two categories where the language ' +
|
|
16
|
+
'would not normally use a numeral. For example, for Arabic zero: use "{count} ..." ' +
|
|
17
|
+
'not "لا توجد ...". For Arabic one: use "{count} ..." not "واحدة ...".\n\n' +
|
|
18
|
+
'Preserve brand names. Match the tone and formality of the original.\n\n' +
|
|
15
19
|
'CLDR plural categories are: zero, one, two, few, many, other.\n' +
|
|
16
20
|
'Only include categories that {target_lang} actually uses.\n\n' +
|
|
17
21
|
'Project context: {project_context}';
|
package/package.json
CHANGED
package/src/backend.ts
CHANGED
|
@@ -15,8 +15,12 @@ const PLURAL_SYSTEM_TEMPLATE =
|
|
|
15
15
|
'(one and other) in {source_lang}. Generate ALL plural forms needed in ' +
|
|
16
16
|
'{target_lang} according to CLDR plural rules. Return ONLY a JSON object ' +
|
|
17
17
|
'mapping plural categories to translated strings. Do not include explanation.\n\n' +
|
|
18
|
-
'
|
|
19
|
-
'
|
|
18
|
+
'CRITICAL: Placeholders like {count}, {name}, %s, ${value} are SOFTWARE VARIABLES ' +
|
|
19
|
+
'that will be replaced by code at runtime. You MUST include them exactly as written ' +
|
|
20
|
+
'in EVERY plural form, even for zero, one, and two categories where the language ' +
|
|
21
|
+
'would not normally use a numeral. For example, for Arabic zero: use "{count} ..." ' +
|
|
22
|
+
'not "لا توجد ...". For Arabic one: use "{count} ..." not "واحدة ...".\n\n' +
|
|
23
|
+
'Preserve brand names. Match the tone and formality of the original.\n\n' +
|
|
20
24
|
'CLDR plural categories are: zero, one, two, few, many, other.\n' +
|
|
21
25
|
'Only include categories that {target_lang} actually uses.\n\n' +
|
|
22
26
|
'Project context: {project_context}';
|