Editor.i18n

Methods

Editor.i18n.format (text)

  • text string

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

Editor.i18n.formatPath (path)

  • path string

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

Editor.i18n.t (key, option)

  • key string
  • option object

Mapping an i18n id to translated text.

Editor.i18n.extend (phrases)

  • phrases object

Extends the phrases.

Editor.i18n.replace (phrases)

  • phrases object

Replaces the phrases.

Editor.i18n.unset (phrases)

  • phrases object

Removes phrases.

Editor.i18n.clear ()

Clear all phrases.

Properties

Editor.i18n.polyglot

Get the polyglot instance.

results matching ""

    No results matching ""