better_i18n 0.1.1
better_i18n: ^0.1.1 copied to clipboard
Flutter SDK for better-i18n — runtime translation loading from CDN with offline fallback.
0.1.1 #
- Fix:
context.t()/translate()now resolves arbitrarily deep dot-paths against the nested CDN key format. Keys deeper than two segments (e.g.auth.welcome.title, served as{"auth": {"welcome": {"title": …}}}) previously returned the raw key; they now resolve correctly. The legacy single-split namespace lookup is kept as a fallback, so flat-in-namespace payloads continue to work unchanged.
0.1.0 #
- Initial release
- CDN-based runtime translation loading with 3-tier fallback (memory cache, CDN, persistent storage, static data)
BetterI18nProviderwidget for easy setupcontext.t()extension for Flutter-idiomatic translationscontext.setI18nLocale()for runtime locale switchingSharedPrefsStoragefor offline fallback persistence- Pluggable
TranslationStorageinterface