U-AMOS 2.0 IntegrationGrow Your App with AI
Step 8 - Internationalization
Setup multi-language support with AI
Step 8: Setup Internationalization (i18n)
Configure translation structure and generate keys for English, French, and Spanish.
Quick Start (Implementation)
Get your app ready for global markets instantly.
1. Copy the Prompt
Navigate to ai_rules/generators/i18n_generator.md and copy the file.
2. Paste into Code AI
Open your AI assistant and paste the prompt. It will read your features list to ensure every screen has translation keys.
Generating translation structure for all features
3. Generate Files
The AI will create:
src/locales/en.json(Base language)src/locales/fr.json(French)src/locales/es.json(Spanish)
The generated Language Picker component in Settings
4. Verification
-
en.json,fr.json,es.jsoncreated insrc/locales/ - Language switcher in Settings works
- Text updates immediately when switching languages
- App restarts with saved language preference
🧠 Deep Dive: How it Works
Namespace Organization
Keys are organized by feature to keep files manageable:
Json
{
"auth": { "login": "Sign In" },
"common": { "loading": "Loading..." }
}Usage: t('auth.login')
Adding New Languages
- Copy
en.jsontode.json(German). - Ask AI: "Translate this JSON value to German".
- Register
de.jsoninsrc/i18n/config.ts. - Add "Deutsch" to the options in
LanguagePicker.tsx.
Maintenance
Use the built-in script to check for missing keys:
yarn i18n:checkCompletion!
You have now completed the standard growth setup!