Releases: slang-i18n/slang
Releases · slang-i18n/slang
fast_i18n v5.3.0
- feat: handle linked translations with parameters
fast_i18n v5.2.0
- 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
- feat: add
param_case
configuration to recase parameters
fast_i18n v5.0.4
- fix: always escape
$
forbraces
anddouble_braces
, escape$
fordart
if this symbol is alone
fast_i18n v5.0.3
- fix: For country code only,
india
instead ofin
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
- fix: transform keys with multiple digits according to
key_case
correctly
fast_i18n v5.0.1
- fix: Missing
PluralResolver
when pluralization is not used in project
fast_i18n v5.0.0
This release mostly focuses on simplifications of build.yaml
.
- Breaking: builder name renamed from
fast_i18n:i18nBuilder
tofast_i18n
- Breaking: plural auto detection is on by default (
auto: cardinal
) - Breaking: fallback strategy option
strict
is nownone
- Breaking: key paths in
build.yaml
must be cased according tokey_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
- feat: simplify
${arg}
to$arg
if possible - feat: make internal translation class instance final
fast_i18n v4.10.0
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.