localizing-android
Installation
SKILL.md
Android Localization Skill
Quick Start
When adding UI text, follow this workflow:
- Add string to
res/values/strings.xml(Sentence case for buttons) - Add composable function to
core/localization/Str.kt - Add translations to ALL 7 language files
- Use
Str.*()in composables orcontext.getString()in ViewModels/Services
Key Files
| File | Purpose |
|---|---|
core/localization/Str.kt |
Type-safe string wrappers |
core/localization/LanguageManager.kt |
Runtime language switching |
res/values/strings.xml |
English (default) |
res/values-{lang}/strings.xml |
Translations (es, de, fr, pt, ja, hi, tl) |