TranslationExtension extension
Extension providing localization capabilities to strings.
- on
Methods
-
trArgs(
[List< String> args = const <String>[]]) → String - Returns a translated string with arguments replaced.
-
trParams(
[Map< String, String> params = const <String, String>{}]) → String - Returns a translated string with parameters replaced.
-
trPlural(
[String? pluralKey, int? i, List< String> args = const <String>[]]) → String - Returns a translated string with pluralization support and arguments replaced.
-
trPluralParams(
[String? pluralKey, int? i, Map< String, String> params = const <String, String>{}]) → String - Returns a translated string with pluralization support and parameters replaced.