language_helper 0.2.7-rc.2
language_helper: ^0.2.7-rc.2 copied to clipboard
Make it easier for you to implement multiple languages into your app.
0.2.7-rc.2 #
- Add more details to README.
0.2.7-rc.1 #
- Add
language_helper_generatoras 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
currentCodetocode, addlocaleto get the current Locale. - Add
localesto get the current list of language as Locale. - The
datais now asserted as must be not empty. initial()must be run before callingcodeorlocale, socodeandlocaleare non-null.- Add
Lhbas a short version ofLanguageBuilder. trPandtrT's parameter are now required.- Add more tests.
- Update example.
0.2.6-rc.3 #
streamnow will works even when theonChangedis not set.
0.2.6-rc.2 #
- Add
streamto LanguageHelper, you can listen for language change events.
0.2.6-rc.1 #
- Supports early state of language_helper_generator.
- Improves
onChangedreturn type. - Add
analysisKeysparameter toinitial(mostly used forlanguage_helper_generatorI think). - Improves description for the result of
analyzemethod. - Update README.
0.2.5+1 #
- Improve pub scores.
0.2.5 #
- Add
.trTextension to use onlytoCodeparameter. - Refactor internal code.
0.2.4 #
- Add
LanguageCodes.fromNameandLanguageCodes.fromNativeName. - Add
orElseparameter toLanguageCodes.fromCode,.fromNameand.fromNativeName.
0.2.3 #
- Add
toCodeparameter totranslatemethod to translate the current text to a specific code instead of the currentCode. - Add
.trFextension to use full version oftranslate. - Update README.
0.2.2 #
- Renamed from
LanguageNotifiertoLanguageBuilderand marked it as Deprecated. - Improved
LanguageBuilderbehavior.
0.2.1 #
- Use the
language_codeplugin instead of thedevicelocale.
0.2.0+3 #
- Added
isAutoSaveparameter toinitialto 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@paramto translate text with parameters. - Added
paramsparateters to thetranslatemethod.
0.2.0+1 #
-
[BREAKING CHANGE] the
initialmethod will returnFuture, so you need to useawaitto make it equal to before. -
The app will try use
Devicelocaleas the default language code if theinitialCodeis not set. -
Added
useInitialCodeWhenUnavailableparameter to control theLanguageCodeswhen 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
defaultCodetoinitialCode. - [FEAT] Add a param
onChangedto notify when the language is changed.
0.0.4 #
analyzewill be automatically called ininitialwhenisDebugistrue.
0.0.3 #
- [LanguageHelper] add
forceRebuildto allow the plugin to force rebuild all the widgets intead of only root widgets. - [LanguageNotifier] add
forceRebuildto 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
LanguageCodesenum.
0.0.1+1 #
- [LanguageNotifier] Only change the state of the root widgets to improve performance.
0.0.1 #
- Initial release.