Skip to content

Commit

Permalink
release: 5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Oct 3, 2021
1 parent 9d4facc commit bacb9f6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/[email protected].1
- uses: subosito/[email protected].3
with:
flutter-version: '2.2.2'
flutter-version: '2.5.2'
- run: flutter pub get
- run: flutter format --set-exit-if-changed lib bin
- run: flutter test
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
## 5.2.0

- feat: add YAML support, you can now choose between JSON and YAML to define your translations!
- feat: different casing for map keys via `key_map_case`

New recommended setup (see README):

```dart
void main() {
WidgetsFlutterBinding.ensureInitialized();
// LocaleSettings.useDeviceLocale();
runApp(TranslationProvider(child: MyApp())); // Wrap your app with TranslationProvider
}
```

```dart
MaterialApp(
locale: TranslationProvider.of(context).flutterLocale, // use provider
supportedLocales: LocaleSettings.supportedLocales,
localizationsDelegates: const [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
)
```

## 5.1.0

- feat: add `param_case` configuration to recase parameters
Expand Down
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages:
name: build
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
build_config:
dependency: transitive
description:
Expand Down Expand Up @@ -213,7 +213,7 @@ packages:
name: glob
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
version: "2.0.2"
graphs:
dependency: transitive
description:
Expand Down Expand Up @@ -500,4 +500,4 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
6 changes: 3 additions & 3 deletions 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 files to create typesafe translations via source generation.
version: 5.1.0
version: 5.2.0
homepage: https://github.com/Tienisto/flutter-fast-i18n
publish_to: https://pub.dev

Expand All @@ -10,8 +10,8 @@ environment:
dependencies:
flutter:
sdk: flutter
build: ^2.1.0
glob: ^2.0.1
build: ^2.1.1
glob: ^2.0.2
yaml: ^3.1.0

dev_dependencies:
Expand Down

0 comments on commit bacb9f6

Please sign in to comment.