Internationalization
11 built-in languages, lazy loading, RTL and custom translations.
Built-in languages
| Code | Language | Direction |
|---|---|---|
en | English | LTR |
zhHans | 简体中文 | LTR |
es | Español | LTR |
fr | Français | LTR |
de | Deutsch | LTR |
pt | Português | LTR |
ru | Русский | LTR |
ja | 日本語 | LTR |
ko | 한국어 | LTR |
ar | العربية | RTL |
hi | हिन्दी | LTR |
English and Chinese are bundled; the others are separate chunks downloaded the first time you switch to them.
Switch language
setLang is async because it may fetch the language chunk. All editors on the page update immediately. For RTL languages the editor sets dir="rtl" on its root element.
Build a picker with supportedLocales:
Override or add translations
Missing keys fall back to English, so you only need to provide what you change:
The full list of keys is in src/locales/locales/en.ts. Plugins can ship their own translations with the locales option.