Skip to content

Releases: slang-i18n/slang

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

v3.23.0

18 Aug 11:17
e049795
Compare
Choose a tag to compare
  • feat: support multiple TranslationProvider at the same time when using multiple packages
  • fix: trailing slash in config does not work with build_runner
  • i18n: Swedish plural resolver improvement

Contributions

  • fix: Handle negative values properly in Swedish. (#156) @lohnn

v3.22.0

25 Jul 15:04
9940539
Compare
Choose a tag to compare
  • feat: announcing slang_gpt, a new package to generate translations with GPT

v3.21.0

17 Jul 14:49
7c4c5b1
Compare
Choose a tag to compare
  • feat: add input directory as comment to generated files
  • fix: migrate away from deprecated WidgetsBinding.instance.window in findDeviceLocale implementation
  • fix: handle empty maps in _missing_translations in yaml format (#152) (by @adil192)

v3.20.0

09 Jul 10:09
c69b74a
Compare
Choose a tag to compare
  • feat: add slang edit add (short: slang add) to add new translations (#150) (by @adil192)

v3.19.0

21 Jun 00:18
Compare
Choose a tag to compare
  • feat: add enum value inference (no need to specify enum in the config anymore)
  • feat: add slang edit copy to copy translations
  • feat: namespaces may contain underscores if at least one file of same directory uses locale from directory name
  • DEPRECATED: Use explicit context modifier instead of relying on the config file (see migration guide)