feat(i18n): 完善多模块多语言适配与发版验证

扩展前后端多语言文案与共享词典。增加多模块 i18n 回归测试与 guard。收口外部 SQL 菜单和弹窗多语言文案。
This commit is contained in:
tianqijiuyun-latiao
2026-06-17 13:17:33 +08:00
parent 76b0163bd3
commit 9364c48ef0
135 changed files with 8401 additions and 1325 deletions

View File

@@ -9,6 +9,7 @@ import {
getSecurityUpdateActionButtonStyle,
getSecurityUpdateShellSurfaceStyle,
} from '../utils/securityUpdateVisuals';
import { useI18n } from '../i18n/provider';
interface SecurityUpdateIntroModalProps {
open: boolean;
@@ -37,6 +38,8 @@ const SecurityUpdateIntroModal = ({
onPostpone,
onViewDetails,
}: SecurityUpdateIntroModalProps) => {
const { t } = useI18n();
return (
<Modal
rootClassName={SECURITY_UPDATE_MODAL_CLASS}
@@ -59,10 +62,10 @@ const SecurityUpdateIntroModal = ({
</div>
<div>
<div style={{ fontSize: 16, fontWeight: 800, color: overlayTheme.titleText }}>
{t('security_update.intro.title')}
</div>
<div style={{ marginTop: 3, color: overlayTheme.mutedText, fontSize: 12 }}>
使
{t('security_update.intro.subtitle')}
</div>
</div>
</div>
@@ -89,7 +92,7 @@ const SecurityUpdateIntroModal = ({
onClick={onViewDetails}
disabled={loading}
>
{t('security_update.intro.action.details')}
</Button>,
<Button
key="later"
@@ -100,7 +103,7 @@ const SecurityUpdateIntroModal = ({
onClick={onPostpone}
disabled={loading}
>
{t('security_update.intro.action.later')}
</Button>,
<Button
key="start"
@@ -110,7 +113,7 @@ const SecurityUpdateIntroModal = ({
loading={loading}
onClick={onStart}
>
{t('security_update.intro.action.start_now')}
</Button>,
]}
>
@@ -122,8 +125,7 @@ const SecurityUpdateIntroModal = ({
fontSize: 14,
}}
>
使
{t('security_update.intro.description')}
</div>
</Modal>
);