Localization
Choose the editor language with locale. The release includes English, Simplified Chinese and Traditional Chinese. Hosts can supply translations and configure direction.
The site language switch preserves the current topic; examples localize both host messages and editor UI. Business content in code is not automatically translated.
Localize custom buttons, upload errors and save states as well as toolbar labels.
Checked code
ts
export const configuration = {
locale: 'zh-CN',
ariaLabel: 'Article content',
minHeight: 280,
readonly: false,
placeholder: 'Start writing…',
toolbarLayout: { collapsible: true, overflow: 'wrap', sticky: true },
onChange: ({ source }) => {
console.info('Canonical HTML:', source);
},
} satisfies CreateClassicEditorOptions;Checked against the published types; see imports and types for imports.