Private
_contextPrivate
_defaultsPrivate
_dictionaryPrivate
_domainPrivate
_localePrivate
_pluralPrivate
_pluralPrivate
_stringsPrivate
expandSplit a locale into parent locales. "es-CO" -> ["es-CO", "es"]
The locale string.
An array of locales.
Private
getSplit a locale into parent locales. "es-CO" -> ["es-CO", "es"]
Plural form string..
An function to compute plural forms.
Private
removeRemove the context delimiter from string.
Translation string.
A translation string without context.
Private
setSet messages after loading them.
The translation domain.
The translation locale.
List of translation strings.
Plural form string.
Contains juicy parts of https://github.com/Orange-OpenSource/gettext.js/blob/master/lib.gettext.js
Private
tProper translation function that handle plurals and directives.
List of translation strings.
The number for pluralization.
Translation options.
Any variables to interpolate.
A translation string without context.
Contains juicy parts of https://github.com/Orange-OpenSource/gettext.js/blob/master/lib.gettext.js
Shorthand for gettext.
The singular string to translate.
Rest
...args: any[]Any additional values to use with interpolation.
A translated string if found, or the original string.
This is not a private method (starts with an underscore) it is just a shorter and standard way to call these methods.
Shorthand for ngettext.
The singular string to translate.
The plural string to translate.
The number for pluralization.
Rest
...args: any[]Any additional values to use with interpolation.
A translated string if found, or the original string.
This is not a private method (starts with an underscore) it is just a shorter and standard way to call these methods.
Shorthand for npgettext.
The message context.
The singular string to translate.
The plural string to translate.
The number for pluralization.
Rest
...args: any[]Any additional values to use with interpolation.
A translated string if found, or the original string.
This is not a private method (starts with an underscore) it is just a shorter and standard way to call these methods.
Shorthand for pgettext.
The message context.
The singular string to translate.
Rest
...args: any[]Any additional values to use with interpolation.
A translated string if found, or the original string.
This is not a private method (starts with an underscore) it is just a shorter and standard way to call these methods.
Translate a singular string with extra interpolation values.
The translations domain.
The message context.
The singular string to translate.
The plural string to translate.
The number for pluralization.
Rest
...args: any[]Any additional values to use with interpolation
A translated string if found, or the original string.
Translate a plural string with extra interpolation values.
The singular string to translate.
Rest
...args: any[]Any additional values to use with interpolation.
A translated string if found, or the original string.
Translate a contextualized plural string with extra interpolation values.
The message context.
The singular string to translate.
The plural string to translate.
The number for pluralization.
Rest
...args: any[]Any additional values to use with interpolation
A translated string if found, or the original string.
Translate a contextualized singular string with extra interpolation values.
The message context.
The singular string to translate.
Rest
...args: any[]Any additional values to use with interpolation.
A translated string if found, or the original string.
This is not a private method (starts with an underscore) it is just a shorter and standard way to call these methods.
Static
strfmtsprintf
equivalent, takes a string and some arguments to make a
computed string.
The string to interpolate.
Rest
...args: any[]The variables to use in interpolation.
strfmt("%1 dogs are in %2", 7, "the kitchen"); => "7 dogs are in the kitchen" strfmt("I like %1, bananas and %1", "apples"); => "I like apples, bananas and apples"
Generated using TypeDoc
Gettext class providing localization methods.