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
+
1
13
## [ 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 ` ;
3
15
4
16
``` dart
5
17
await Localization.configuration(showDebugPrintMode: false);
@@ -12,14 +24,14 @@ deixar Log ocional, para desativa-lo basta utilizar
12
24
await Localization.configuration(showDebugPrintMode: false);
13
25
```
14
26
15
- Você também pode setar a variavel chamando a função
27
+ You can set the variable calling the function:
16
28
``` dart
17
29
Localization.setShowDebugPrintMode(false);
18
30
```
19
31
20
- ## [ 1.1.0] 2021-8 -29
32
+ ## [ 1.1.0] 2021-08 -29
21
33
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;
23
35
* BREAK CHANGE: Use ` "welcome".i18n(args: ["22/06"]) ` ao invés de ` "welcome".i18n(["22/06"]) `
24
36
* BREAK CHANGE: Use ` Localization.translate('welcome', args: ["22/06"]) ` ao invés de ` Localization.translate('welcome', ["22/06"]) `
25
37
### New features
0 commit comments