flutter_translate
4.1.0, released 2 years ago by jesway.com
Localization and internationalization library for Flutter supporting JSON translations.
What it does
Allows you to define translations for app content in different languages using inline or nested JSON. It supports pluralization, RTL layouts, fallback locales, and automatic locale saving and restoration.
AI-written summary of version 4.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need standard runtime localization using JSON files.
- You require right-to-left (RTL) language support and fallback locales.
- You want automatic saving and restoring of the selected user locale.
Skip it when
- You prefer type-safe, code-generated localization alternatives.
- You do not use JSON for managing your translation dictionaries.
Strengths
- Easy to use with simple global methods for translations.
- Supports mobile, web, and desktop platforms.
- Built-in pluralization and duals support.
Weaknesses
- Lacks compile-time safety or code generation for translation keys.
- Documentation relies heavily on external wiki pages.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Configure translation files and initialize the localization delegate in your app startup.
not documentedAlternatives
Packages that do the same job and could replace flutter_translate.
- slang
If you prefer type-safe localization through code generation.
90Compare - easy_localization
If you want another popular JSON-based runtime localization option.
64Compare
Works with
Packages commonly used together with flutter_translate: ones it builds on, ones built on it, and its own family.
- intlflutter_translate depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- universal_ioflutter_translate depends on itCross-platform dart:io implementation with browser support for HttpClient and other APIs