flutter_easy_localization 1.0.2
flutter_easy_localization: ^1.0.2 copied to clipboard
A powerful and flexible localization package for Flutter with runtime language switching, translation caching, plural/gender rules, and missing translation detection.
Changelog #
All notable changes to this project will be documented in this file.
1.0.2 Initial Stable Release #
Features #
- Runtime language switching without app restart
- Translation caching system for optimal performance
- Missing translation detector with debug mode
- Comprehensive plural rules for 30+ languages
- Fallback language support
- JSON file loader
- Nested translation keys with dot notation
- Parameter replacement in translations
- Dialog and bottom sheet language selectors
Widgets #
LanguageSelector- Dropdown selectorLanguageButtonSelector- Button-based selectorTranslationBuilder- Auto-rebuild widgetTranslatedText- Direct text widgetPluralText- Plural text widget
Extensions #
.tr()- Simple translation.plural()- Plural translation.hasTranslation()- Check existence.trOr()- Translation with fallback.trSafe()- Safe translation.trContext()- Context-aware translation
Platform Support #
- Android
- iOS
- Web
- Windows
- macOS
- Linux
Other #
- Zero dependencies (except Flutter SDK)
- Type-safe API
- Memory-efficient caching
- Singleton pattern for global access
- Observer pattern for reactive updates
- Complete documentation and examples