Skip to main content
Set the editor’s language, or your own texts, with the lang prop.

Built-In Languages

The language switches live. A string outside the list reads English, with no error.

Your Own Texts

Pass an object instead of a code. It takes three keys:
App.tsx
Each message is read key by key: your texts first, then the extend dictionary, or English when there is no extend. A partial translation never shows a gap. An object written inline in a render is fine. The editor compares it by value, so a new object with the same content re-renders nothing. MessageKey and LangTexts are exported to type your texts.

Start from a Dictionary

The built-in dictionaries ship as JSON, with every message key and its text. Copy one, translate the values, and pass it as texts.
i18n.ts
Some messages have { name } placeholders, such as Limit of { count } areas reached. Keep exactly the placeholders of the English message, in whatever order your language needs. The editor fills them in.

What Is Invalid

A lang object is validated like every other prop. The error screen names the problem, onLoadError receives an INVALID_PROPS error, and the editor reads English until the value is valid.
The editor is always laid out left to right, so a right-to-left page never mirrors it.