language_helper 0.2.7 language_helper: ^0.2.7 copied to clipboard
Make it easier for you to implement multiple languages into your app.
0.2.7 #
- Improve test coverage (reach 99.1%).
- Set the sdk version:
">=2.17.0 <4.0.0"
- Bring the release candidate to stable.
0.2.7-rc.5 #
- Fixes issues of the
LanguageData
serializer. - Improves test coverage.
0.2.7-rc.4 #
- Add
LanguageConditions
to be able to use the plural translation inLanguageData
. - Add serialization for
LanguageData
:- Use
data.toJson()
to convert the data to JSON. - Use
LanguageDataSerializer.fromJson(json)
to convert the JSON data back to theLanguageData
.
- Use
- Update command to
dart run language_helper:generate
. - Update test for
LanguageConditions
andLanguageDataSerializer
. - Update README.
0.2.7-rc.3 #
- Mark
Lhb
as deprecated, useTr
instead. - Improve README.
0.2.7-rc.2 #
- Add more details to README.
0.2.7-rc.1 #
- Add
language_helper_generator
as a build-in function. Using by commandflutter pub run language_helper:generate
.
0.2.6 #
- Bring the release candidate to stable.
0.2.6-rc.4 #
- Change from
currentCode
tocode
, addlocale
to get the current Locale. - Add
locales
to get the current list of language as Locale. - The
data
is now asserted as must be not empty. initial()
must be run before callingcode
orlocale
, socode
andlocale
are non-null.- Add
Lhb
as a short version ofLanguageBuilder
. trP
andtrT
's parameter are now required.- Add more tests.
- Update example.
0.2.6-rc.3 #
stream
now will works even when theonChanged
is not set.
0.2.6-rc.2 #
- Add
stream
to LanguageHelper, you can listen for language change events.
0.2.6-rc.1 #
- Supports early state of language_helper_generator.
- Improves
onChanged
return type. - Add
analysisKeys
parameter toinitial
(mostly used forlanguage_helper_generator
I think). - Improves description for the result of
analyze
method. - Update README.
0.2.5+1 #
- Improve pub scores.
0.2.5 #
- Add
.trT
extension to use onlytoCode
parameter. - Refactor internal code.
0.2.4 #
- Add
LanguageCodes.fromName
andLanguageCodes.fromNativeName
. - Add
orElse
parameter toLanguageCodes.fromCode
,.fromName
and.fromNativeName
.
0.2.3 #
- Add
toCode
parameter totranslate
method to translate the current text to a specific code instead of the currentCode. - Add
.trF
extension to use full version oftranslate
. - Update README.
0.2.2 #
- Renamed from
LanguageNotifier
toLanguageBuilder
and marked it as Deprecated. - Improved
LanguageBuilder
behavior.
0.2.1 #
- Use the
language_code
plugin instead of thedevicelocale
.
0.2.0+3 #
- Added
isAutoSave
parameter toinitial
to allow the plugin auto save and reload the language when changed and opened in the next time.
0.2.0+2 #
- You can use
@{param}
instead of@param
to translate text with parameters. - Added
params
parateters to thetranslate
method.
0.2.0+1 #
-
[BREAKING CHANGE] the
initial
method will returnFuture
, so you need to useawait
to make it equal to before. -
The app will try use
Devicelocale
as the default language code if theinitialCode
is not set. -
Added
useInitialCodeWhenUnavailable
parameter to control theLanguageCodes
when you change to unavailable code. -
Added
trP()
extension to allow replacing specific texts by values. Ex:final text = 'Hello @user'.trP({'user' : 'Vursin'}); // => Hello Vursin
-
Added test.
0.1.0+2 #
- Improved the pub score.
0.1.0+1 #
- Improved function headers.
- Changed to use
debugPrint
.
0.1.0 #
- [BREAK] Rename the param from
defaultCode
toinitialCode
. - [FEAT] Add a param
onChanged
to notify when the language is changed.
0.0.4 #
analyze
will be automatically called ininitial
whenisDebug
istrue
.
0.0.3 #
- [LanguageHelper] add
forceRebuild
to allow the plugin to force rebuild all the widgets intead of only root widgets. - [LanguageNotifier] add
forceRebuild
to allow the plugin to force rebuild this specific widget or not.
0.0.2 #
- [Feat] Add method
LanguageHelper.instance.analyze()
to analyze the missing texts of all languages. - Add headers for
LanguageCodes
enum.
0.0.1+1 #
- [LanguageNotifier] Only change the state of the root widgets to improve performance.
0.0.1 #
- Initial release.