TranslationExtension extension

Extension providing localization capabilities to strings.

on

Properties

tr String

Available on String, provided by the TranslationExtension extension

no setter

Methods

trArgs([List<String> args = const <String>[]]) String

Available on String, provided by the TranslationExtension extension

Returns a translated string with arguments replaced.
trParams([Map<String, String> params = const <String, String>{}]) String

Available on String, provided by the TranslationExtension extension

Returns a translated string with parameters replaced.
trPlural([String? pluralKey, int? i, List<String> args = const <String>[]]) String

Available on String, provided by the TranslationExtension extension

Returns a translated string with pluralization support and arguments replaced.
trPluralParams([String? pluralKey, int? i, Map<String, String> params = const <String, String>{}]) String

Available on String, provided by the TranslationExtension extension

Returns a translated string with pluralization support and parameters replaced.