jaspr_localizations 1.0.0+beta.3
jaspr_localizations: ^1.0.0+beta.3 copied to clipboard
Internationalization and localization support for Jaspr applications with ARB file generation.
1.0.0 #
- Initial version with InheritedComponent-based LocaleProvider
- Features:
- Added
Localeclass withlanguageCodeand optionalcountryCode Locale.fromLanguageTag()factory for parsing language tags- Support for
Set<Locale>insupportedLocalesproperty updateShouldNotifytracks both locale and supportedLocales changes- ARB File Support: Industry-standard Application Resource Bundle format
- Code Generation: Automatic generation of type-safe localization classes
- l10n.yaml Configuration: Similar to flutter_localizations setup
- Build Runner Integration: Generate localization code with
dart run build_runner build - Placeholder Support: Type-safe placeholders in messages (String, int, double, DateTime)
- Added
- Breaking Changes:
LocaleProvider.of()now returnsLocaleProviderinstance instead ofStringlocaleproperty is now aLocaleobject instead ofStringsupportedLocalesis nowSet<Locale>instead ofSet<String>- Use
locale.toLanguageTag()to get the string representation - Removed
FlutterErrorin favor of assertions for cleaner Jaspr implementation
- Added comprehensive tests for Locale and LocaleProvider functionality
- Updated documentation and examples with ARB file generation guide
