Editor.i18n

Methods

Editor.i18n.format (text)

Convert an i18n text i18n:{id} to string {id}

Editor.i18n.formatPath (path)

Convert an i18n path i18n:{id1}/i18n:{id2} to string {id1}/{id2}.

Editor.i18n.t (key, option)

Mapping an i18n id to translated text.

Editor.i18n.extend (phrases)

Extends the phrases.

Editor.i18n.replace (phrases)

Replaces the phrases.

Editor.i18n.unset (phrases)

Removes phrases.

Editor.i18n.clear ()

Clear all phrases.

Properties

Editor.i18n.polyglot

Get the polyglot instance.