i420n 1.0.0
i420n: ^1.0.0 copied to clipboard
Simple, type-safe internationalization (i18n) for Dart and Flutter. YAML-based with code generation, Flutter Locale support, and pluralization.
Changelog #
1.0.0 #
Initial release of i420n, a fork of i69n by fnx.io with enhanced Flutter support.
New Features #
-
Auto-Registration
- Locales are automatically registered when imported — no manual setup needed!
- Just import your locale files and they're ready to use
- Manual registration only required for deferred/lazy loading
-
Flutter Context Integration (
flutter: truein build.yaml)XxxLocaleSettingsclassuseDeviceLocale()- set locale from devicesetLocaleRaw(String)- set by locale stringsetLocale(Locale)- set by Locale objectsupportedLocales- for MaterialApp
TranslationProviderwidget - wrap your app, auto-rebuilds on locale change- Global accessor
xxx context.xxxextension for easy access
-
Flutter Locale Support
flutterLocalegetter on all message bundlesLocaleclass compatible with Flutter's LocalesupportedLocalesFlutterforMaterialApp.supportedLocalesfindByLocale(Locale)with language fallback
-
Locale Registry
registerXxxLocale()to register locale bundles (for deferred loading)getXxxByLocale(String)to find by locale namexxxSupportedLocalesgetter for registered locale names
-
Breaking Changes from i69n
- Package renamed from
i69ntoi420n - File extension changed from
.i69n.yamlto.i420n.yaml - Flags changed from
_i69nto_i420n - Interface renamed from
I69nMessageBundletoI420nMessageBundle
- Package renamed from
Inherited from i69n 3.4.0 #
- Global configuration support for
nomapandnotraverseflags viabuild.yaml notraverseflag to control dot notation access- Local override support with
map/traverseflags - Emoji support in translations
- Null safety
- Custom imports and types
- Deferred loading support