Configurable options for the Gettext constructor.

interface IOptions {
    contextDelimiter?: string;
    domain?: string;
    locale?: string;
    messages?: string[];
    pluralForms?: string;
    pluralFunc?: PluralForm;
    stringsPrefix?: string;
}

Properties

contextDelimiter?: string

The delimiter to use when adding contextualized strings.

domain?: string

The domain of the translation, usually the normalized package name. Example: "jupyterlab", "jupyterlab_git"

Note

Normalization replaces - by _ in package name.

locale?: string

Language locale. Example: es_CO, es-CO.

messages?: string[]

Translation message strings.

pluralForms?: string

String describing the plural of the given language. See: https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html

pluralFunc?: PluralForm

Plural form function.

stringsPrefix?: string

The string prefix to add to localized strings.