The editor comes with default labels in english, but all are overridable.
- For blocks, styles, and entities, use the
descriptionprop to set text in the right language.
- For boolean controls (
enableLineBreak, etc), set instead an object with
descriptionprops (all optional).
Depending on the target language, you may also need to use the
textDirectionality prop (
RTL). See the full Draft.js documentation for more details.
This example is built with react-intl, but the editor integration is completely agnostic of what solution you use.