feat(i18n): U47 最后3处残余硬编码中文清零 — 全前端非注释CJK=0 (cloud-server-import阿里云/腾讯云/华为云→i18n.t + TerminalSessionsTab批量删除→t + PreviewTable类型→t), 复用已有翻译键零新增, zh/en 8102=8102对齐, tsc -b=0, npm build✓ (18.02s), ESLint=0/43/any=0, go build=0, 17/17测试通过
This commit is contained in:
1 parent
21728be445
commit
96ed39d122
4 files changed
+7
-5
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { LucideIcon } from 'lucide-react';
|
||||
import i18n from '@/i18n';
|
||||
|
||||
/** 云账号(后端返回的动态 JSON,索引签名兜底未声明字段) */
|
||||
export interface CloudAccount {
|
||||
@@ -50,8 +51,8 @@ export interface StepDef {
|
||||
/** 支持的云厂商列表 */
|
||||
export const CLOUD_PROVIDERS = [
|
||||
{ id: 'aws', name: 'AWS' },
|
||||
{ id: 'aliyun', name: '阿里云' },
|
||||
{ id: 'tencent', name: '腾讯云' },
|
||||
{ id: 'huawei', name: '华为云' },
|
||||
{ id: 'aliyun', name: i18n.t('cloud.aliyun') },
|
||||
{ id: 'tencent', name: i18n.t('cloud.tencent') },
|
||||
{ id: 'huawei', name: i18n.t('cloud.huawei') },
|
||||
{ id: 'azure', name: 'Azure' },
|
||||
] as const;
|
||||
@@ -51,7 +51,7 @@ export function PreviewTable({ data, validCount, warningCount, errorCount }: Pre
|
||||
{t('server.excelIpAddress')}
|
||||
</th>
|
||||
<th className="px-3 py-2 text-left text-xs font-medium text-[var(--dg-text-secondary)]">
|
||||
类型
|
||||
{t('common.type')}
|
||||
</th>
|
||||
<th className="px-3 py-2 text-left text-xs font-medium text-[var(--dg-text-secondary)]">
|
||||
{t('common.status')}
|
||||
|
||||
@@ -191,7 +191,7 @@ export function TerminalSessionsTab() {
|
||||
onClick={handleBatchDelete}
|
||||
>
|
||||
<Trash2 className="h-4 w-4 mr-2" />
|
||||
批量删除({selected.size})
|
||||
{t('system.terminalBatchDelete')}({selected.size})
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user