feat(i18n): standardize bilingual catalogs and tooling

This commit is contained in:
Maofeng
2026-09-20 15:52:31 +08:00
parent ea00a71112
commit 6cd981d6a2
92 changed files with 685 additions and 1986 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ import {
findLexicalActions,
} from "./action-declarations"
import { LexicalActionsProvider } from "./actions-context"
import { messages as englishMessages } from "./locales/en"
import { messages as englishMessages } from "./locales/en-US"
const pluginKeys = new WeakMap<ComponentType, string>()
let nextPluginKey = 0
@@ -46,7 +46,7 @@ function LexicalI18nBoundary({ children }: { children: ReactNode }) {
if (hasI18nProvider) return children
return (
<I18nProvider catalogs={{ en: englishMessages }} locale="en">
<I18nProvider catalogs={{ "en-US": englishMessages }} locale="en-US">
{children}
</I18nProvider>
)