Skip to content

Releases: slang-i18n/slang

v3.2.0

27 Oct 22:40
a0c1898
Compare
Choose a tag to compare
  • feat: add command flutter pub run slang:apply to add translations from the slang:analyze result
  • fix: handle isFlatMap parameter when overriding translations correctly
  • fix: update arb migration tool to respect new modifier syntax

v3.1.0

08 Oct 20:25
bd93b76
Compare
Choose a tag to compare
  • feat: add command flutter pub run slang:analyze to report missing translations

v3.0.0

20 Sep 21:10
249fb2a
Compare
Choose a tag to compare

Translation Overrides and Enhanced Modifiers

  • feat: it is now possible to override translations via LocaleSettings.overrideTranslations (checkout updated README)
  • feat: there is a new modifier syntax which allows for multiple modifiers e.g. myKey(plural, rich)
  • feat: improve file scan (now only checks top-level directory for any config files)
  • Breaking: default plural parameter is now n; you can revert this by setting pluralization/default_parameter: count
  • Breaking: custom plural/context parameter must follow syntax apples(param=appleCount)

All breaking changes will result in a compile-time error, so don't worry for "hidden" bugs :)

You can read the detailed migration guide here.

v2.8.0

16 Sep 15:52
84cb988
Compare
Choose a tag to compare
  • feat: add AppLocaleUtils.parseLocaleParts
  • fix: LocaleSettings.useDeviceLocale now does not complain of weird locales on Linux
  • fix: rich text now handles all characters
  • fix: rich text properly applies param_case
  • fix: empty nodes are rendered as classes instead of claiming them as plurals

v2.7.0

08 Aug 23:34
90d4580
Compare
Choose a tag to compare
  • feat: ignore empty plural / context nodes when fallback_strategy: base_locale is used
  • feat: add coverage:ignore-file to generated file and ignore every lint

v2.6.2

28 Jul 20:03
cd0560a
Compare
Choose a tag to compare
  • feat: add Russian plural resolver (thanks to @LuckyWins)
  • fix: parse rich text with interpolation braces and double_braces correctly

v2.6.1

14 Jun 00:03
be1d415
Compare
Choose a tag to compare
  • fix: remove const if rich text has links

v2.6.0

13 Jun 23:02
0a6d4b4
Compare
Choose a tag to compare
  • feat: render context enum values as is, instead of forcing to camel case
  • feat: add additional lint ignores to generated file
  • fix: generate correct ordinal (plural) call
  • fix: handle rich texts containing linked translations

v2.5.0

07 Jun 20:17
5a89ce4
Compare
Choose a tag to compare
  • feat: add extension method shorthand (e.g. context.tr.someKey.anotherKey)
  • feat: add LocaleSettings.getLocaleStream to keep track of every locale change
  • feat: return more specific TextSpan instead of InlineSpan for rich texts

v2.4.1

31 May 23:58
f74b22b
Compare
Choose a tag to compare
  • fix: do not export package:flutter/widgets.dart