Easy and fast internationalization for Flutter apps
open sourceMITfree
easy_localization is a Flutter package for translating apps. It loads translations from JSON files (and CSV, YAML or XML through Easy Localization Loader), handles plurals, gender, nested and linked keys and right-to-left locales, falls back to a default locale for missing keys, remembers the user's chosen locale, and adds tr() extension methods on Text and BuildContext. Its code generator writes localization files and type-safe keys, and it can audit missing keys.
Problems it solves
- translate my Flutter app into several languages from JSON files
- let users switch the language of my Flutter app and remember their choice
- handle plural forms and right-to-left languages in my Flutter app's translations
- find translation keys that are missing in one of my Flutter app's languages
Features
- translations from JSON, or CSV, YAML and XML with a loader
- plurals, gender, nesting, linked keys and RTL locales
- fallback locale and an error widget for missing translations
- saves and restores the chosen locale
- code generation for localization files and keys
- audit of missing keys
Limitations
- On iOS the supported locales must also be added to the app's Info.plist1
Alternatives
The same job
These do what easy_localization does.
- intl Internationalization and localization for Dart and Flutter
