Merge branch 'dev' into hugo

This commit is contained in:
hugo committed 2026-06-12 11:50:43 +08:00
commit ae6a5e7c55
49 files changed
+5333 -4234

No files matched your search

+17 -6
View File
@@ -22,13 +22,17 @@ import enAdmin from './en/admin.json';
import zhCNAdmin from './zh-CN/admin.json';
import zhTWAdmin from './zh-TW/admin.json';
import thAdmin from './th/admin.json';
import enKb from './en/kb.json';
import zhCNKb from './zh-CN/kb.json';
import zhTWKb from './zh-TW/kb.json';
import thKb from './th/kb.json';
/** 已外置的 locale 域模块(locale → 域名 → 内容) */
/** 已外置的 locale 域模块(locale → 域名 → 内容);auth 展平至顶层以匹配 login.* / landing.* / register.* 键路径 */
const externalModules: Record<string, Record<string, unknown>> = {
en: { errors: enErrors, auth: enAuth, workspace: enWorkspace, chat: enChat, admin: enAdmin },
'zh-CN': { errors: zhCNErrors, auth: zhCNAuth, workspace: zhCNWorkspace, chat: zhCNChat, admin: zhCNAdmin },
'zh-TW': { errors: zhTWErrors, auth: zhTWAuth, workspace: zhTWWorkspace, chat: zhTWChat, admin: zhTWAdmin },
th: { errors: thErrors, auth: thAuth, workspace: thWorkspace, chat: thChat, admin: thAdmin },
en: { errors: enErrors, ...enAuth, workspace: enWorkspace, chat: enChat, admin: enAdmin, ...enKb },
'zh-CN': { errors: zhCNErrors, ...zhCNAuth, workspace: zhCNWorkspace, chat: zhCNChat, admin: zhCNAdmin, ...zhCNKb },
'zh-TW': { errors: zhTWErrors, ...zhTWAuth, workspace: zhTWWorkspace, chat: zhTWChat, admin: zhTWAdmin, ...zhTWKb },
th: { errors: thErrors, ...thAuth, workspace: thWorkspace, chat: thChat, admin: thAdmin, ...thKb },
};
/**
@@ -51,4 +55,11 @@ export function mergeExternalLocales(messages: Record<string, Record<string, unk
return merged;
}
export { enErrors, zhCNErrors, zhTWErrors, thErrors, enAuth, zhCNAuth, zhTWAuth, thAuth, enWorkspace, zhCNWorkspace, zhTWWorkspace, thWorkspace, enChat, zhCNChat, zhTWChat, thChat, enAdmin, zhCNAdmin, zhTWAdmin, thAdmin };
export {
enErrors, zhCNErrors, zhTWErrors, thErrors,
enAuth, zhCNAuth, zhTWAuth, thAuth,
enWorkspace, zhCNWorkspace, zhTWWorkspace, thWorkspace,
enChat, zhCNChat, zhTWChat, thChat,
enAdmin, zhCNAdmin, zhTWAdmin, thAdmin,
enKb, zhCNKb, zhTWKb, thKb,
};