flutter_bhasha 1.0.2
flutter_bhasha: ^1.0.2 copied to clipboard
A production-grade Flutter localization package with dynamic language switching, JSON translations, RTL/LTR support, interpolation, fallback language, persistent storage, and a clean developer API.
1.0.2 #
- Updated example name references to Ranganath Pavan throughout docs and code.
1.0.1 #
- Fix: Added proper MIT LICENSE file.
1.0.0 #
- Initial release.
- Dynamic language switching at runtime with no app restart.
- JSON-based translations with nested key support (dot-notation:
auth.login). - Parameter interpolation:
"Welcome, {name}!". - Automatic fallback to a configured fallback locale when a key is missing.
- Device locale detection on first launch.
- Persistent locale storage via
shared_preferences. - RTL / LTR auto-detection — set
TextDirection.rtlon anyBhashaLocale. context.tr("key")and"key".tr()extension methods.- Ready-made widgets:
LanguageSelectorDropdown,LanguageSelectorListTile,RtlWrapper. - Clean singleton
BhashaControllerwith injectable dependencies for testing. - 31 unit tests covering all core components.