localize method
Get translated text.
By specifying language
, you can translate in a specific language.
If language
is specified and the specified language is not available,
the translation will be performed in English.
Implementation
String localize({String? language}) => Localize.get(
this,
defaultValue: this,
language: language,
);