ACM Editorial · 2026-11-28 · 1 min read

Use translation resource files instead of hard-coded sentences in screens.

Separate strings from widgets

Use translation resource files instead of hard-coded sentences in screens. Name keys after their meaning, not their English words. Include placeholders for dynamic values and use plural rules rather than concatenating a number and a translated noun.

Format values for the locale

Dates, currency and decimal separators vary. Store timestamps and monetary amounts in consistent internal representations, then format at display time. Keep currency identity separate from language; an English-speaking user may still need INR.

Allow content to grow

German translations can occupy more space than English and Arabic needs right-to-left layout. Avoid fixed-height labels and test wrapping, alignment, icons and navigation in both directions. Use flexible layouts and check maximum text scaling.

Review with real speakers

Machine translation is useful for drafts but cannot verify terminology or instructions. Test important permission explanations, error messages, store listing text and legal content with qualified reviewers. Keep untranslated fallback strings available.

Further reading

https://docs.flutter.dev/ui/accessibility-and-internationalization/internationalization