Guide for adding internationalization support in the DEVS platform. Use this when asked to add new languages, translate strings, or work with i18n files.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Guide for adding internationalization support in the DEVS platform. Use this when asked to add new languages, translate strings, or work with i18n files.
Internationalization (i18n) for DEVS
DEVS supports multiple languages. All user-facing strings must be translatable.
Add the key to src/i18n/locales/en.ts (default language)
Add translations to all other language files
Use the key in your component with t('section.key')
// 1. Add to en.tsexportdefault {
myFeature: {
title: 'My Feature',
description: 'This is my new feature',
},
}
// 2. Add to fr.tsexportdefault {
myFeature: {
title: 'Ma Fonctionnalité',
description: 'Ceci est ma nouvelle fonctionnalité',
},
}
// 3. Use in componentconst { t } = useTranslation()
<h1>{t('myFeature.title')}</h1>
Agent/Methodology i18n
Add translations directly in YAML files:
id:my-agentname:MyAgentdesc:Shortdescriptionrole:Roledescriptioninstructions:|
English instructions...
i18n:fr:name:MonAgentdesc:Descriptioncourterole:Descriptiondurôleinstructions:|
Instructions en français...
es:name:MiAgentedesc:Descripcióncortarole:Descripcióndelrolinstructions:|
Instrucciones en español...
de:name:MeinAgentdesc:KurzeBeschreibungrole:Rollenbeschreibunginstructions:|
Anweisungen auf Deutsch...
Critical Rules
1. Use Curly Apostrophe
Always use ' (curly apostrophe) instead of ' (straight apostrophe) in translation strings:
// ✅ Correct"It's working"// Using '"Don't forget"// Using '// ❌ Wrong"It's working"// Using '"Don't forget"// Using '
2. Alphabetical Ordering
Keep translation keys in alphabetical order within each section: