tr_extension 0.10.0
tr_extension: ^0.10.0 copied to clipboard
A smart and lightweight string translation through extension.
Changelog #
This project adheres to Semantic Versioning.
0.10.0 Nov 26, 2025 #
- Now supports a
TrDelagate.translationsmap. - Migrated
AssetManifestapproach. - Bump dart
3.10.0.
0.9.2 Apr 01, 2025 #
- Fix
TrDelegate.pathconflicts with external packages.
0.9.1 Fev 05, 2025 #
- Force args translation when manually set.
0.9.0 Fev 04, 2025 #
- Added
argsparameter toTrDelegate.translate. - Added
trArgs/trnArgsString extension to manually pass arguments.
0.8.0 Jan 30, 2025 #
- Now you can setup
TrDelegateas a list or element. - Added
context.trto accessTrDelegate. - Added
context.supportedLocalesto access supported locales. - Now
setLocateaccepts nullable locale. Setting null will use system's locale. - Now
Tr.instance.localeis non-nullable. - Remove
dart:collectiondependency. - Bump Flutter SDK to 3.0.0.
0.7.1 Nov 22, 2024 #
- Expose cache in TrDelegate.reload.
0.7.0 Nov 11, 2024 #
- Now it's possible to await BuildContext.setLocale.
- Improved loading in case the same locale is set.
- Improved reloading on hot reload.
0.6.1 Jun 06, 2024 #
- Added
TrDelegate.alwaysUseUtcFormat.
0.6.0 May 29, 2024 #
- Added
Intl.defaultLocaleintegration. - Added
DateTimeextensions forDateFormat - Added
Stringextensions forNumberFormat.
0.5.2 Apr 30, 2024 #
- Fixed conflicts when using '.' inside the translation argument.
Thanks to suamirochadev for pointing this out.
0.5.1 Feb 25, 2024 #
- Updated README.
0.5.0 Feb 24, 2024 #
- Complete rewrite of the package setup configuration.
- The package is now completely compatible with
LocalizationsandMaterialAppwidgets. - Removed
Trclass and all it's static methods. - Added
TrDelegatefactory constructor for configuration. - Added
toList()toTrDelegateto include flutter localization delegate. - Added
context.localefor state management. - Updated tests.
- Updated README.
- Updated example.
0.1.2 Nov 14, 2023 #
- Added example
0.1.1 Nov 14, 2023 #
- Updated README
0.1.0 Nov 14, 2023 #
- Added Dynamic Token Replacement feature.
- Added Tr.to.putTranslations
- Added Tr.to.addTranslations
- Added invalid token warning log.
- Added pubspec.yaml asset warning log.
- Optimized code for hash mapped querying.
- Optimized translations loading.
- Updated tests.