mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-26 16:29:42 +08:00
✨ feat(i18n): 完善多模块多语言适配与发版验证
扩展前后端多语言文案与共享词典。增加多模块 i18n 回归测试与 guard。收口外部 SQL 菜单和弹窗多语言文案。
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user