Skip to content

Commit

Permalink
release: 5.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Dec 18, 2021
1 parent 53762a9 commit 6991223
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 5.7.0

- feat: add option to disable timestamp generation
- feat: add option to split output file
- perf: flat translation map now declared separately for each locale

## 5.6.0
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ It is recommended to add `fast_i18n` to `dev_dependencies`.
```yaml
dev_dependencies:
build_runner: any
fast_i18n: 5.6.0
fast_i18n: 5.7.0
```
**Step 2: Create JSON files**
Expand Down Expand Up @@ -271,7 +271,7 @@ Key|Type|Usage|Default
`param_case`|`camel`, `pascal`, `snake`|transform parameters (optional) [(i)](#-recasing)|`null`
`string_interpolation`|`dart`, `braces`, `double_braces`|string interpolation mode [(i)](#-string-interpolation)|`dart`
`flat_map`|`Boolean`|generate flat map [(i)](#-dynamic-keys--flat-map)|`true`
`timestamp`|`Boolean`|write "Build on" timestamp|`true`
`timestamp`|`Boolean`|write "Built on" timestamp|`true`
`maps`|`List<String>`|entries which should be accessed via keys [(i)](#-maps)|`[]`
`pluralization`/`auto`|`off`, `cardinal`, `ordinal`|detect plurals automatically [(i)](#-pluralization)|`cardinal`
`pluralization`/`cardinal`|`List<String>`|entries which have cardinals|`[]`
Expand Down Expand Up @@ -845,9 +845,7 @@ This will generate the following files:

```text
translations.g.dart - main file
translations_en.g.dart - English translations
translations_de.g.dart - German translations
translations_<locale>.g.dart - any other translations
translations_<locale>.g.dart - translation classes
translations_map.g.dart - flat translation maps
```

Expand Down Expand Up @@ -925,6 +923,10 @@ Yes. Please set `fallback_strategy: base_locale` in `build.yaml`.

Now you can leave out translations in secondary languages. Missing translations will fallback to base locale.

**Can I prevent the timestamp `Built on` from updating?**

No, but you can disable the timestamp altogether. Set `timestamp: false` in `build.yaml`.

**Why setLocale doesn't work?**

In most cases, you forgot the `setState` call.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fast_i18n
description: Localization / Internationalization (i18n) solution. Use JSON, YAML or CSV files to create typesafe translations via source generation.
version: 5.6.0
version: 5.7.0
homepage: https://github.com/Tienisto/flutter-fast-i18n
publish_to: https://pub.dev

Expand Down

0 comments on commit 6991223

Please sign in to comment.