tr method
String
tr(
- String key, {
- Map<
String, dynamic> ? map, - Map<
String, MustacheFilter> ? filters, - JsonIntlGender? gender,
- int? count,
- bool? strict,
General purpose translation
Return the string corresponding to key
, using map
and filters
to
replace the mustache-like variables.
gender
helps to choose the right translation variant for the specified
gender.
value
is a number that helps to choose the right translation variant
according to the current language rules.
If strict
is false
the language rules are bent to always return the
values for zero, one and two.
Implementation
String tr(
String key, {
Map<String, dynamic>? map,
Map<String, MustacheFilter>? filters,
JsonIntlGender? gender,
int? count,
bool? strict,
}) {
return JsonIntl.of(this).translate(
key,
gender: gender,
count: count,
map: map,
filters: filters,
strict: strict,
);
}