refactor(i18n): 全工程面向国际用户与全球现代商务重构,彻底清理出海跨境等单向视角表达并对齐自动化测试

这个提交包含在:
wikiboss
2026-09-21 15:24:36 +08:00
父节点 ad9df7a7a4
当前提交 17882ca1cb
共有 135 个文件被更改,包括 12928 次插入 和 1653 次删除

查看文件

@@ -51,7 +51,27 @@ export type SecurityCopyKey =
| 'errorAlreadyFrozen'
| 'errorNotFrozen'
| 'freezeSuccess'
| 'unfreezeSuccess';
| 'unfreezeSuccess'
| 'submitting'
| 'operationError'
| 'shieldTitleActive'
| 'shieldDescActive'
| 'shieldTitleFrozen'
| 'shieldDescFrozen'
| 'chipDetailsTitle'
| 'securityHashLabel'
| 'materialLabel'
| 'protocolLabel'
| 'policyPoint1'
| 'policyPoint2'
| 'policyPoint3'
| 'confirmFreezeTitle'
| 'confirmFreezeDesc'
| 'confirmUnfreezeTitle'
| 'confirmUnfreezeDesc'
| 'confirmBtn'
| 'cancelBtn'
| 'cardListTitle';
const DEFAULT_SALT = 'OMNICARD_SECURE_SALT_2026';
@@ -306,6 +326,60 @@ export function resolveSecurityText(key: SecurityCopyKey): string {
return isZh ? '设备已成功远程挂失冻结' : 'Card frozen successfully';
case 'unfreezeSuccess':
return isZh ? '设备已成功解冻恢复' : 'Card unfrozen successfully';
case 'submitting':
return isZh ? '处理中...' : 'Processing...';
case 'operationError':
return isZh ? '操作异常' : 'Something went wrong';
case 'shieldTitleActive':
return isZh ? '芯片防盗与云端防护运行中' : 'Cloud & Chip Protection Active';
case 'shieldDescActive':
return isZh
? '物理近场触碰正常联通,触碰即可即时唤起您的专属微官网。'
: 'Physical tap-to-share is active and securely linked.';
case 'shieldTitleFrozen':
return isZh ? '物理芯片已远程挂失冻结' : 'Hardware Frozen & Locked';
case 'shieldDescFrozen':
return isZh
? '已切断物理触碰与数据传输,微官网与访客雷达资产依然安全隔离。'
: 'Physical tap-to-share is blocked. Cloud portal data remains safe.';
case 'chipDetailsTitle':
return isZh ? '芯片防伪与技术参数' : 'Chip Authenticity & Technical Specs';
case 'securityHashLabel':
return isZh ? '防伪安全哈希' : 'Security Hash';
case 'materialLabel':
return isZh ? '物理材质' : 'Material';
case 'protocolLabel':
return isZh ? '通信协议' : 'Protocol';
case 'policyPoint1':
return isZh
? '立即阻断近场触碰响应,拾获者无法获取名片信息或盗用身份'
: 'Instantly halts physical tap-to-share to prevent identity theft';
case 'policyPoint2':
return isZh
? '云端微官网、商业资料与雷达轨迹数据不受影响,完全安全留存'
: 'Cloud portal data, assets, and radar traces remain intact';
case 'policyPoint3':
return isZh
? '在展会或出差行李中寻回实体卡后,可在此秒级一键解冻恢复'
: 'One-click remote unfreeze anytime without needing a replacement card';
case 'confirmFreezeTitle':
return isZh ? '确认远程挂失此实体卡?' : 'Freeze this physical card?';
case 'confirmFreezeDesc':
return isZh
? '挂失将立即阻断该实体卡的一切近场触碰功能,拾获者将无法读取任何数据。'
: 'Freezing will immediately halt all touch responses for this physical card.';
case 'confirmUnfreezeTitle':
return isZh ? '确认解除挂失恢复?' : 'Unfreeze and restore card?';
case 'confirmUnfreezeDesc':
return isZh
? '解除挂失后,该实体卡将立即恢复触碰唤起微官网与交换名片功能。'
: 'Unfreezing will restore tap-to-share and portal access immediately.';
case 'confirmBtn':
return isZh ? '确认执行' : 'Confirm';
case 'cancelBtn':
return isZh ? '取消' : 'Cancel';
case 'cardListTitle':
return isZh ? '名下 NFC 硬件资产' : 'Registered NFC Cards';
default:
return '';
}