From 9673a22f26e1f81d0abda3e6d8ca8cd7d8fb74d4 Mon Sep 17 00:00:00 2001 From: shaw Date: Thu, 21 May 2026 11:12:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(i18n):=20=20=20=E5=8E=BB=E9=99=A4=E5=85=91?= =?UTF-8?q?=E6=8D=A2=E7=A0=81=E6=89=B9=E9=87=8F=E4=BF=AE=E6=94=B9=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=9A=84=E7=BF=BB=E8=AF=91=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #2613 与 PR #2615 各自独立添加了同一组批量修改 i18n key, 导致 vue-tsc 报 TS1117 错误。保留 Title Case 一组,删除重复定义。 --- frontend/src/i18n/locales/en.ts | 16 ---------------- frontend/src/i18n/locales/zh.ts | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 70ebb072..0809f293 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -4194,22 +4194,6 @@ export default { codeDeleted: 'Redeem code deleted successfully', codesDeleted: 'Successfully deleted {count} unused code(s)', noUnusedCodes: 'No unused codes to delete', - selectedCount: '{count} selected', - clearSelection: 'Clear selection', - batchUpdate: 'Batch update', - batchUpdateTitle: 'Batch update redeem codes', - batchUpdateSuccess: 'Successfully updated {count} redeem code(s)', - failedToBatchUpdate: 'Failed to batch update redeem codes', - selectCodesFirst: 'Please select redeem codes first', - noBatchFieldsSelected: 'Select at least one field to update', - batchFields: { - status: 'Status', - expiresAt: 'Expires At', - notes: 'Notes', - group: 'Group' - }, - batchNotesPlaceholder: 'Leave empty to clear notes', - clearGroup: 'Clear group', failedToLoad: 'Failed to load redeem codes', failedToGenerate: 'Failed to generate codes', failedToExport: 'Failed to export codes', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 399af5b3..c839f52b 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -4323,22 +4323,6 @@ export default { codeDeleted: '兑换码删除成功', codesDeleted: '成功删除 {count} 个未使用的兑换码', noUnusedCodes: '没有未使用的兑换码可删除', - selectedCount: '已选 {count} 个', - clearSelection: '清空选择', - batchUpdate: '批量修改', - batchUpdateTitle: '批量修改兑换码', - batchUpdateSuccess: '成功修改 {count} 个兑换码', - failedToBatchUpdate: '批量修改兑换码失败', - selectCodesFirst: '请先选择兑换码', - noBatchFieldsSelected: '请选择至少一个要修改的字段', - batchFields: { - status: '状态', - expiresAt: '过期时间', - notes: '备注', - group: '分组' - }, - batchNotesPlaceholder: '留空将清空备注', - clearGroup: '清除分组', userPrefix: '用户 #{id}', failedToExport: '导出兑换码失败', failedToDeleteUnused: '删除未使用的兑换码失败',