Private
_contextPrivate
_defaultsPrivate
_dictionaryPrivate
_domainPrivate
_localePrivate
_pluralPrivate
_pluralPrivate
_stringsShorthand 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.
Private
expandPrivate
getLoad json translations strings (In Jed 2.x format).
The translation strings plus metadata.
The translation domain, e.g. "jupyterlab".
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.
Private
removePrivate
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.
Rest
...args: any[]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
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"
Gettext class providing localization methods.