# 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.
