Skip to content

Commit c929b6b

Browse files
[CHANGELOG] Added 2.0.0
1 parent 6c40b57 commit c929b6b

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

CHANGELOG.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
## [2.0.0] 2022-01-24
2+
Now the **Localization** package is fully integrated into Flutter and can reflect changes made natively by the SDK.
3+
4+
* BREAK CHANGE: Removed packages translation files;
5+
* BREAK CHANGE: `.i18n()` parameters are a positional args now;
6+
* BREAK CHANGE: Removed conditions. After long discussions, we decided that this is a developer responsibility, for example:
7+
```dart
8+
final items = 10;
9+
if(items == 1) return 'title-label-singular'.i18n();
10+
if(items > 1) return 'title-label-plural'.i18n();
11+
```
12+
113
## [1.1.2-dev.1] 2022-01-13
2-
Adicionado suporte a arquivos de tradução com apenas a língua, como por exemplo `pt.json`;
14+
Added support of translation files just with language, for example `pt.json`;
315

416
```dart
517
await Localization.configuration(showDebugPrintMode: false);
@@ -12,14 +24,14 @@ deixar Log ocional, para desativa-lo basta utilizar
1224
await Localization.configuration(showDebugPrintMode: false);
1325
```
1426

15-
Você também pode setar a variavel chamando a função
27+
You can set the variable calling the function:
1628
```dart
1729
Localization.setShowDebugPrintMode(false);
1830
```
1931

20-
## [1.1.0] 2021-8-29
32+
## [1.1.0] 2021-08-29
2133

22-
* BREAK CHANGE: Os parâmetros do método `'welcome'.i18n(["22/06"])` e `Localization.translate('welcome', ["22/06"])` estão nomeados
34+
* BREAK CHANGE: The parameters from method `'welcome'.i18n(["22/06"])` e `Localization.translate('welcome', ["22/06"])` are named;
2335
* BREAK CHANGE: Use `"welcome".i18n(args: ["22/06"])` ao invés de `"welcome".i18n(["22/06"])`
2436
* BREAK CHANGE: Use `Localization.translate('welcome', args: ["22/06"])` ao invés de `Localization.translate('welcome', ["22/06"])`
2537
### New features

0 commit comments

Comments
 (0)