Skip to content

Releases: slang-i18n/slang

v3.31.0

23 May 01:08
6b71400
Compare
Choose a tag to compare
  • feat: add dart run slang normalize to normalize translations based on base locale @Tienisto
  • feat: add parameter type support (introduced 3.30.0) to ARB files (#214) @Tienisto
  • feat: sort translation files for reproducible console output (#210) @poppingmoon

v3.30.0

03 Mar 00:20
7e189ee
Compare
Choose a tag to compare
  • feat: add parameter types (e.g. Hello {name: String}, you are {age: int} years old); is Object by default @Tienisto
  • fix: handle nested interfaces (#191) @Tienisto
  • refactor: move code to src folder @Tienisto

v3.29.0

21 Jan 02:26
d5070c8
Compare
Choose a tag to compare
  • 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

v3.28.0

21 Dec 22:25
c0edcc3
Compare
Choose a tag to compare
  • feat: add fallback_strategy: base_locale_empty_string to also treat empty strings as missing translations (#180)
  • fix: special case where linked translations had invalid parenthesis (#181)

v3.27.0

16 Dec 16:46
a7036a1
Compare
Choose a tag to compare
  • feat: add support for ARB files (#179)

v3.26.2

07 Dec 17:35
e6f219d
Compare
Choose a tag to compare
  • fix: should not escape special characters when parsed via the "Translation Overrides" feature (#177)

v3.26.1

04 Dec 12:50
031a1aa
Compare
Choose a tag to compare
  • fix: generate correct compatibility typedef for Translations class (#176)

v3.26.0

04 Dec 02:26
f50ca76
Compare
Choose a tag to compare
  • feat: base translation class is named Translations so that Translations.of(context) returns the same type (#169)
  • feat: the name Translations can be configured via class_name (@bjernie, #174)
  • feat: add statistics configuration (similar to timestamp) to hide statistics in generated file

v3.25.0

16 Oct 20:01
d3c333a
Compare
Choose a tag to compare
  • feat: add dart run slang clean to remove unused translations after running slang analyze (#141)
  • feat: add --exit-if-changed to slang analyze to fail CI if there are missing / unused translations (#141)
  • fix: code generator should not crash if context is not included in i18n (#165)
  • fix: should not generate contextBuilder and nBuilder parameter in rich text if not needed (#168)

v3.24.0

27 Sep 16:24
9dbc8cc
Compare
Choose a tag to compare
  • feat: slang edit add respects order in base locale (@adil192)
  • feat: slang edit add works without a specified locale, it will add the string to all locales
  • feat: use WidgetsBinding.instance.platformDispatcher instead of PlatformDispatcher.instance in findDeviceLocale implementation
  • fix: correctly obfuscate line breaks and single quotes