StringTranslateExtension extension
- on
Methods
-
plural(
num value, {List< String> ? args, BuildContext? context, Map<String, String> ? namedArgs, String? name, NumberFormat? format}) → String -
Available on String, provided by the StringTranslateExtension extension
function translate with pluralizationkeyLocalization keyvalueNumber value for pluralization BuildContext The location in the tree where this widget buildsargsList of localized strings. Replaces {} left to rightnamedArgsMap of localized strings. Replaces the name keys {key_name} according to its namenameName of number value. Replaces {$name} to valueformatFormats a numeric value using a NumberFormat class -
tr(
{List< String> ? args, Map<String, String> ? namedArgs, String? gender, BuildContext? context}) → String -
Available on String, provided by the StringTranslateExtension extension
Main function for translate your language keyskeyLocalization key BuildContext The location in the tree where this widget buildsargsList of localized strings. Replaces {} left to rightnamedArgsMap of localized strings. Replaces the name keys {key_name} according to its namegenderGender switcher. Changes the localized string based on gender string -
trExists(
{BuildContext? context}) → bool -
Available on String, provided by the StringTranslateExtension extension