tinymce.util.I18n
I18n class that handles translation of TinyMCE UI. Uses po style with csharp style parameters.
Summary
Methods
Name | Summary | Defined by |
---|---|---|
Adds translations for a specific language code. Translation keys are set to be case insensitive. |
||
Returns the current language code. |
||
Returns true/false if specified language pack exists. |
||
Returns true/false if the currently active language pack is rtl or not. |
||
Sets the current language code. |
||
Translates the specified text. It has a few formats: I18n.translate("Text"); I18n.translate(["Text {0}/{1}", 0, 1]); I18n.translate({raw: "Raw string"}); |
Methods
add()
add(code: String, items: Object)
Adds translations for a specific language code. Translation keys are set to be case insensitive.