Methods
-
(static) date(thingToFormat)
-
Returns a data formatted according to the current locale settings.
Parameters:
Name Type Description thingToFormatString The data to format - Source:
- See:
-
br/i18n/Translator:#formatDate
-
(static) getTranslator()
-
Returns the
Translatorused.- Source:
-
(static) i18n(thingToFormat, mTemplateArgsopt)
-
Returns the translation for a message using the current locale.
Parameters:
Name Type Attributes Description thingToFormatString The translation key. mTemplateArgsString <optional>
Arguments provided by the template - Source:
- See:
-
br/i18n/Translator:#getMessage
-
(static) number(thingToFormat)
-
Returns a number formatted according to the current locale settings.
Parameters:
Name Type Description thingToFormatString The number to format - Source:
- See:
-
br/i18n/Translator:#formatNumber
-
(static) time(thingToFormat)
-
Returns a time formatted according to the current locale settings.
Parameters:
Name Type Description thingToFormatString The time to format - Source:
- See:
-
br/i18n/Translator:#formatTime