Skip to content

Releases: slang-i18n/slang

fast_i18n v5.3.0

16 Oct 15:18
7b9a0b1
Compare
Choose a tag to compare
  • feat: handle linked translations with parameters

fast_i18n v5.2.0

03 Oct 15:45
bacb9f6
Compare
Choose a tag to compare
  • 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):

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  // LocaleSettings.useDeviceLocale();
  runApp(TranslationProvider(child: MyApp())); // Wrap your app with TranslationProvider
}
MaterialApp(
  locale: TranslationProvider.of(context).flutterLocale, // use provider
  supportedLocales: LocaleSettings.supportedLocales,
  localizationsDelegates: const [
    GlobalMaterialLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
  ],
)

fast_i18n v5.1.0

17 Sep 23:55
fc70d3e
Compare
Choose a tag to compare
  • feat: add param_case configuration to recase parameters

fast_i18n v5.0.4

06 Sep 23:13
0162e53
Compare
Choose a tag to compare
  • fix: always escape $ for braces and double_braces, escape $ for dart if this symbol is alone

fast_i18n v5.0.3

28 Jul 22:31
cad4a76
Compare
Choose a tag to compare
  • fix: For country code only, india instead of in will be used for enum constant (in is a reserved keyword)
  • fix: When using country code only, the correct device locale will be selected

fast_i18n v5.0.2

21 Jul 19:02
54c6402
Compare
Choose a tag to compare
  • fix: transform keys with multiple digits according to key_case correctly

fast_i18n v5.0.1

16 Jul 09:29
3d7e4b9
Compare
Choose a tag to compare
  • fix: Missing PluralResolver when pluralization is not used in project

fast_i18n v5.0.0

15 Jul 23:38
709e6a4
Compare
Choose a tag to compare

This release mostly focuses on simplifications of build.yaml.

  • Breaking: builder name renamed from fast_i18n:i18nBuilder to fast_i18n
  • Breaking: plural auto detection is on by default (auto: cardinal)
  • Breaking: fallback strategy option strict is now none
  • Breaking: key paths in build.yaml must be cased according to key_case if specified
  • Breaking: your project must be null safe
  • feat: generated file follows lint guidelines
  • feat: add support for linked translations, e.g. Welcome to @:appName

You can read the detailed migration guide here.

fast_i18n v4.11.0

12 Jul 22:15
f67a8fb
Compare
Choose a tag to compare
  • feat: simplify ${arg} to $arg if possible
  • feat: make internal translation class instance final

fast_i18n v4.10.0

07 Jul 07:43
b57f571
Compare
Choose a tag to compare

Added support for custom contexts.
Example:

{
  "greet": {
    "male": "Hello Mr $name",
    "female": "Hello Ms $name"
  }
}
String a = t.greet(name: 'Anna', context: GenderContext.female);

For more information, see README.