0d817537be
Introduce @workspace/lexical with composable actions, toolbars, embeds, rich-text nodes, media uploads, selection utilities, HTML serialization, and theme styling.\n\nLocalize built-in controls through MessageDescriptor catalogs for English and Simplified Chinese, while providing an English I18nProvider fallback for standalone editor use. Include focused unit coverage for actions, controls, serialization, plugins, public API, and catalogs.
10 lines
358 B
TypeScript
10 lines
358 B
TypeScript
import type { lexicalMessages } from "../messages"
|
|
|
|
export const lexicalCatalogLocales = ["en", "zh-Hans"] as const
|
|
|
|
type LexicalMessageId =
|
|
(typeof lexicalMessages)[keyof typeof lexicalMessages]["id"]
|
|
|
|
export type LexicalCatalogLocale = (typeof lexicalCatalogLocales)[number]
|
|
export type LexicalMessageCatalog = Readonly<Record<LexicalMessageId, string>>
|