localization
Package to simplify the package translation.
2.1.1
15K downloads/mo
#2455 most downloaded on pub.dev
Flutterando/localization
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 1.8 years
Most releases are documented
notes for 7 of 10 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
14 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
14 releases · Dec 2019 to Oct 2024Releases
latest 14-
2.2.0-beta.123 Oct 2024 pre-releaseRelease notes
Open source →What's Changed
- Bump Flutter version to 3.22.0 ++;
- Created example importing translation files from a package;
- If the key was not found in any of the translation files, it shows the entire key. Eg:
buttons.subscribe;
-
2.1.114 Nov 2023Nothing published for this version
-
2.1.003 Feb 2022 -
2.0.024 Jan 2022Nothing published for this version
-
2.0.0+124 Jan 2022Release notes
Open source →Now the Localization package is fully integrated into Flutter and can reflect changes made natively by the SDK.
- BREAK CHANGE: Removed packages translation files;
- BREAK CHANGE:
.i18n()parameters are a positional args now; - BREAK CHANGE: Removed conditions. After long discussions, we decided that this is a developer responsibility, for example:
final items = 10; if(items == 1) return 'title-label-singular'.i18n(); if(items > 1) return 'title-label-plural'.i18n(); -
1.1.2-dev.113 Jan 2022 pre-releaseRelease notes
Open source →Added support of translation files just with language, for example
pt.json;await Localization.configuration(showDebugPrintMode: false); -
1.1.123 Nov 2021Release notes
Open source →deixar Log ocional, para desativa-lo basta utilizar
await Localization.configuration(showDebugPrintMode: false);You can set the variable calling the function:
Localization.setShowDebugPrintMode(false); -
1.1.030 Sep 2021Release notes
Open source →- BREAK CHANGE: The parameters from method
'welcome'.i18n(["22/06"])eLocalization.translate('welcome', ["22/06"])are named; - BREAK CHANGE: Use
"welcome".i18n(args: ["22/06"])ao invés de"welcome".i18n(["22/06"]) - BREAK CHANGE: Use
Localization.translate('welcome', args: ["22/06"])ao invés deLocalization.translate('welcome', ["22/06"])
New features
- Adição de possibilidade de usar condicionais utilize o
%b{condicao_verdadeira:condição_falsa}para configurar as suas traduções
{ 'quantidade': '%s %b{Resultados:Resultado} %b{encontrados:encontrado}' }Será necessário na parâmetro
conditionspassar uma lista de Booleanos de forma posicionalLocalization.translate( 'testeQuantidade', args: ['2'], conditions: [true, true], )'testeQuantidade'.i18n( args: ['1'], conditions: [false, false], ) - BREAK CHANGE: The parameters from method
-
1.0.1-beta.130 Jul 2021 pre-releaseNothing published for this version
-
1.0.029 Jul 2021Release notes
Open source →- Use Text("welcome".i18n(args: ["22/06"])), ao inves de Text("welcome".i18n(["22/06"])),
-
0.2.0-nullsafety01 Mar 2021 pre-release -
0.1.011 Jun 2020 -
0.0.225 Feb 2020 -
0.0.110 Dec 2019Nothing published for this version