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 |
Returns:
- An instance of
Jed
that provides thegettext
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. |
Returns:
- The same language tag, dash-separated lowercase.
- Type
- string