Skip to main content
Version: 2.0.0

i18n

The editor comes with default labels in english, but all are overridable.

  • For blocks, styles, and entities, use the label and-or description prop to set text in the right language.
  • For boolean controls (enableLineBreak, etc), set instead an object with icon, label, description props (all optional).

Depending on the target language, you may also need to use the textDirectionality prop (LTR or RTL). See the full Draft.js documentation for more details.

Example

This example is built with react-intl, but the editor integration is completely agnostic of what solution you use.