Module: i18n

Internationalization support in the presentation editor.

Source:

Methods

(static) init(langopt) → {Jed}

Initialize the internationalization support in the current editor.

In autodection mode, this function will query the web browser for the current language.

Parameters:
Name Type Attributes Default Description
lang string <optional>
"auto"

A language tag to use, or "auto".

Source:
Returns:
  • An instance of Jed that provides the gettext function.
Type
Jed

(inner) normalize(tag) → {string}

Convert a language tag to a dash-separated lowercase string.

Parameters:
Name Type Description
tag string

A language tag.

Source:
Returns:
  • The same language tag, dash-separated lowercase.
Type
string