From d5070c8a7f9e9f9b107a79bf1f8a5ebe70623713 Mon Sep 17 00:00:00 2001 From: Tien Do Nam Date: Sun, 21 Jan 2024 03:16:09 +0100 Subject: [PATCH] release: 3.29.0 --- slang/CHANGELOG.md | 7 +++++++ .../builder/builder/translation_model_list_builder.dart | 2 +- slang/pubspec.yaml | 4 +++- slang_build_runner/CHANGELOG.md | 4 ++++ slang_build_runner/pubspec.yaml | 4 ++-- slang_flutter/CHANGELOG.md | 4 ++++ slang_flutter/pubspec.yaml | 4 ++-- 7 files changed, 23 insertions(+), 6 deletions(-) diff --git a/slang/CHANGELOG.md b/slang/CHANGELOG.md index fc371e73..9e7a9108 100644 --- a/slang/CHANGELOG.md +++ b/slang/CHANGELOG.md @@ -1,3 +1,10 @@ +## 3.29.0 + +- feat: `dart run slang analyze` supports csv files (#185) @nikaera +- feat: also add linter and coverage ignore to part files (#188) @cmenkemeller +- fix: generate base translations as fallback when using context enums where some enum values are missing (#182) @Tienisto +- fix: generate correct `part of` directive when using a custom dart file extension (#187) @cmenkemeller + ## 3.28.0 - feat: add `fallback_strategy: base_locale_empty_string` to also treat empty strings as missing translations (#180) diff --git a/slang/lib/builder/builder/translation_model_list_builder.dart b/slang/lib/builder/builder/translation_model_list_builder.dart index 46f2af6d..09a765ac 100644 --- a/slang/lib/builder/builder/translation_model_list_builder.dart +++ b/slang/lib/builder/builder/translation_model_list_builder.dart @@ -52,7 +52,7 @@ class TranslationModelListBuilder { ); return I18nData( - base: rawConfig.baseLocale == locale, + base: false, locale: locale, root: result.root, contexts: result.contexts, diff --git a/slang/pubspec.yaml b/slang/pubspec.yaml index 840b456c..b7dcd5ea 100644 --- a/slang/pubspec.yaml +++ b/slang/pubspec.yaml @@ -1,6 +1,6 @@ name: slang description: Localization / Internationalization (i18n) solution. Use JSON, YAML, CSV, or ARB files to create typesafe translations via source generation. -version: 3.28.0 +version: 3.29.0 repository: https://github.com/slang-i18n/slang topics: - i18n @@ -10,6 +10,8 @@ topics: screenshots: - description: The slang logo. path: resources/icon.png +funding: + - https://github.com/sponsors/Tienisto/ environment: sdk: ">=2.17.0 <4.0.0" diff --git a/slang_build_runner/CHANGELOG.md b/slang_build_runner/CHANGELOG.md index 358a89ef..1294db54 100644 --- a/slang_build_runner/CHANGELOG.md +++ b/slang_build_runner/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.29.0 + +- Bump `slang` to `3.29.0` + ## 3.28.0 - Bump `slang` to `3.28.0` diff --git a/slang_build_runner/pubspec.yaml b/slang_build_runner/pubspec.yaml index 148c1deb..d6d388ba 100644 --- a/slang_build_runner/pubspec.yaml +++ b/slang_build_runner/pubspec.yaml @@ -1,6 +1,6 @@ name: slang_build_runner description: build_runner integration for slang. This library ensures that slang is recognized by build_runner. -version: 3.28.0 +version: 3.29.0 repository: https://github.com/slang-i18n/slang environment: @@ -11,4 +11,4 @@ dependencies: glob: ^2.0.2 # Use a tight version to ensure that all features are available - slang: '>=3.28.0 <3.29.0' + slang: '>=3.29.0 <3.30.0' diff --git a/slang_flutter/CHANGELOG.md b/slang_flutter/CHANGELOG.md index 754b870d..e4d17c74 100644 --- a/slang_flutter/CHANGELOG.md +++ b/slang_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.29.0 + +- Bump `slang` to `3.29.0` + ## 3.28.0 - Bump `slang` to `3.28.0` diff --git a/slang_flutter/pubspec.yaml b/slang_flutter/pubspec.yaml index dc61b054..be11fc47 100644 --- a/slang_flutter/pubspec.yaml +++ b/slang_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: slang_flutter description: Flutter support for slang. This library provides helpful Flutter API. -version: 3.28.0 +version: 3.29.0 repository: https://github.com/slang-i18n/slang environment: @@ -12,7 +12,7 @@ dependencies: sdk: flutter # Use a tight version to ensure that all features are available - slang: '>=3.28.0 <3.29.0' + slang: '>=3.29.0 <3.30.0' dev_dependencies: flutter_test: