lang prop.
Built-In Languages
Your Own Texts
Pass an object instead of a code. It takes three keys:App.tsx
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 astexts.
i18n.ts
{ 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
Alang 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.