@zodic/shared 0.0.217 → 0.0.218
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/package.json +1 -1
- package/utils/buildMessages.ts +36 -0
package/package.json
CHANGED
package/utils/buildMessages.ts
CHANGED
|
@@ -245,4 +245,40 @@ export const buildLLMMessages = (env: BackendBindings) => ({
|
|
|
245
245
|
},
|
|
246
246
|
];
|
|
247
247
|
},
|
|
248
|
+
|
|
249
|
+
translateENConceptName: ({ englishName }: { englishName: string }): ChatMessages => [
|
|
250
|
+
{
|
|
251
|
+
role: 'system',
|
|
252
|
+
content: `
|
|
253
|
+
You are a skilled translator specializing in symbolic and mystical naming. Your task is to accurately translate an English concept name into Brazilian Portuguese while preserving its poetic and symbolic meaning.
|
|
254
|
+
|
|
255
|
+
**Guidelines:**
|
|
256
|
+
- Do not translate word-for-word; maintain the symbolic depth.
|
|
257
|
+
- Ensure the translated name follows correct Portuguese grammar.
|
|
258
|
+
- Preserve any article usage:
|
|
259
|
+
- "The Crown of..." → "A Coroa de..."
|
|
260
|
+
- "The Lantern of..." → "A Candeia de..."
|
|
261
|
+
- "The Ring of..." → "O Anel de..."
|
|
262
|
+
- "The Amulet of..." → "O Amuleto de..."
|
|
263
|
+
- "The Orb of..." → "O Orbe de..."
|
|
264
|
+
- "The Scepter of..." → "O Cetro de..."
|
|
265
|
+
- Do not add extra words or change the intended meaning.
|
|
266
|
+
|
|
267
|
+
**Input:**
|
|
268
|
+
- English Name: "${englishName}"
|
|
269
|
+
|
|
270
|
+
**Output Format:**
|
|
271
|
+
- Return only the translated name without any explanation.
|
|
272
|
+
|
|
273
|
+
**Example Translations:**
|
|
274
|
+
- "The Crown of Radiant Grace" → "A Coroa de Graça Radiante"
|
|
275
|
+
- "The Lantern of Guiding Light" → "A Candeia de Luz Guia"
|
|
276
|
+
- "The Ring of Eternal Vows" → "O Anel de Votos Eternos"
|
|
277
|
+
`,
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
role: 'user',
|
|
281
|
+
content: `Translate this concept name into Brazilian Portuguese: "${englishName}"`,
|
|
282
|
+
},
|
|
283
|
+
],
|
|
248
284
|
});
|