- Updated intl to support Flutter 3.22.x and above
- Documentation old references are removed
- Formatting function added. (
dart run locale_gen:format
)
- License to BSD-3-Clause license
Updated to intl 0.18.x
- After some time of using the new locale_gen package. It made our lifes harder than before.
For now we reverted the
.of(context)
removalsingelton
implementation Other changes likesprintf
,plurals
and dependency updates are still in place.
- Updated the signature of
load
to support getting the bundle to load from. Falls back torootBubdle
- Updated travis to linux from macOS
- Translations can no longer be accessed from static methods on the Localization class. Instead you now need to manually manage the different localization instances. Migration steps are described in the readme.
- Arguments are now formatted using the sprintf package. This means %d now refers to integers only. Use %f to format doubles, you can also use some format specifiers, eg: (%.2f will show 2 decimals)
- This means that the sprintf package must be added to the pubspec.yaml (at least ^6.0.2)
- Support for plurals had been added, see the readme on how to use them
- Dependencies
- Removed the need of passing a context to get translations. Migration steps are described in the readme.
- Added support for non-positional arguments. You cannot use both positional and non-positional arguments in the same string.
- Sorting of the default language in the supported languages
- changed language code to
toLanguageTag()
- Output path should also be used for the correct imports
- Extra error handling for the output_path. (output_path should always start with
lib/
) - Extra unit tests & refactored some code to have smaller tests
- Support for using an other directory instead of
lib/util/locale
for write all the files
Breaking
- Dart 2.14.0 is minimum dart version
- Fixed an issue where
kDebugMode
moved to another import
- Added better import sorting (alphabetic) so the analyzer won't break everytime
- Issue where an exception was thrown even when it was not needed.
- #53: Issue where a carriage return
\r
would generate invalid documentation - #52: Unnecessary string interpolation for '$key' in
localization.dart
- #39: Better generated documentation for arguments
- #56: Option to override the localizations. Pass a
LocalizationOverrides
to theLocalizationDelegate
. Refreshing & managing the cached localizations should be done by the developer.
- locale that was used to initialize your Localization is now also included in
localization.dart
- the default language generation
- the supported language list generation
- #45 support for country codes & languages
- #48 useCaching configuration for fetching the json translation files
- #46 default path variables (asset dir, local asset dir, output dir)
- #43 Newline documentation issue
- #42 Migrated strict mode code
- #42 Generate strict mode code
- #36 Added support generating documentation so you can see translations in your IDE
- #37 Added config option to configure which languages should be used for generating documentation code
- #34 Support for skipping a locale at runtime. example: only use dutch in alpha but not in beta & production
- #32 Nullsafety implementation. Support for flutter 2.0 & dart 2.12.0
- #32 nullsafe flag is removed because from this version we are targeting 2.12 which will use nullsafety by default
- Added option to generate null safety compatible code
- #24: error when using locale_asset_path in combination with the icapps_translations package
- Version bump packages
- Added travis ci integration
- Android embedding v2
- Documentation updated
- Added support for the usage of this package in other once. Mainly because of icapps_translations
- Strict mode
- Support for a multi module architecture
- Localization keys support (better support for testing)
- isInTest => showLocalizationKeys Behaviour is still the same.
- Test support
- Removed the unneeded log
- Fixed documentation about arguments
- Support for arguments
- Dart formatting
- Updated README.md
- Initial release