From 07e625f2bc743dead1130d5cafe126fd11040128 Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 1 Jun 2026 09:50:59 +0800 Subject: [PATCH] chore: add locales --- src/layouts/extraRender.tsx | 2 +- src/locales/en-US/common.ts | 3 ++- src/locales/ja-JP/common.ts | 3 ++- src/locales/ru-RU/common.ts | 5 +++-- src/locales/tr-TR/common.ts | 3 ++- src/locales/zh-CN/common.ts | 4 ++-- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/layouts/extraRender.tsx b/src/layouts/extraRender.tsx index 98b3afce..0d01ce02 100644 --- a/src/layouts/extraRender.tsx +++ b/src/layouts/extraRender.tsx @@ -212,7 +212,7 @@ export const ExtraContent = (props: { isDarkTheme?: boolean }) => { - {intl?.formatMessage?.({ id: 'common.button.settings' })} + {intl?.formatMessage?.({ id: 'common.preferences' })} ), diff --git a/src/locales/en-US/common.ts b/src/locales/en-US/common.ts index 8540681e..b559e924 100644 --- a/src/locales/en-US/common.ts +++ b/src/locales/en-US/common.ts @@ -285,5 +285,6 @@ export default { 'common.image.limit.height': 'Image height must be {height}.', 'common.remaining': 'Remaining {count}', 'common.max': 'Max {count}', - 'common.validate.group': 'Please complete the {group} configuration' + 'common.validate.group': 'Please complete the {group} configuration', + 'common.preferences': 'Preferences' }; diff --git a/src/locales/ja-JP/common.ts b/src/locales/ja-JP/common.ts index ee09d90f..486ed3a4 100644 --- a/src/locales/ja-JP/common.ts +++ b/src/locales/ja-JP/common.ts @@ -285,7 +285,8 @@ export default { 'common.image.limit.height': 'Image height must be {height}.', 'common.remaining': '残り {count}', 'common.max': '最大 {count}', - 'common.validate.group': 'Please complete the {group} configuration' + 'common.validate.group': 'Please complete the {group} configuration', + 'common.preferences': 'Preferences' }; // ========== To-Do: Translate Keys (Remove After Translation) ========== diff --git a/src/locales/ru-RU/common.ts b/src/locales/ru-RU/common.ts index fcd25e2d..e570e644 100644 --- a/src/locales/ru-RU/common.ts +++ b/src/locales/ru-RU/common.ts @@ -260,7 +260,7 @@ export default { 'common.sso.noConfig': 'Единый вход не настроен в этой системе. Пожалуйста, обратитесь к администратору.', 'common.button.edit.item': 'Редактировать {name}', - 'common.button.copy.item': 'Duplicate {name}', + 'common.button.copy.item': 'Дублировать {name}', 'common.button.terminal': 'Терминал', 'common.button.addItem': 'Добавить элемент', 'common.help.default': 'По умолчанию: {content}', @@ -284,7 +284,8 @@ export default { 'common.image.limit.height': 'Image height must be {height}.', 'common.remaining': 'Остаток {count}', 'common.max': 'Макс. {count}', - 'common.validate.group': 'Please complete the {group} configuration' + 'common.validate.group': 'Please complete the {group} configuration', + 'common.preferences': 'Preferences' }; // ========== To-Do: Translate Keys (Remove After Translation) ========== diff --git a/src/locales/tr-TR/common.ts b/src/locales/tr-TR/common.ts index 8d4908c7..942c9a00 100644 --- a/src/locales/tr-TR/common.ts +++ b/src/locales/tr-TR/common.ts @@ -288,5 +288,6 @@ export default { 'common.image.limit.height': 'Image height must be {height}.', 'common.remaining': 'Kalan {count}', 'common.max': 'Maks. {count}', - 'common.validate.group': 'Please complete the {group} configuration' + 'common.validate.group': 'Please complete the {group} configuration', + 'common.preferences': 'Tercihler' }; diff --git a/src/locales/zh-CN/common.ts b/src/locales/zh-CN/common.ts index 8482397f..5a9b6c48 100644 --- a/src/locales/zh-CN/common.ts +++ b/src/locales/zh-CN/common.ts @@ -51,7 +51,6 @@ export default { 'common.button.confirm': '确定', 'common.button.viewlog': '查看日志', 'common.button.viewevent': '查看事件', - 'common.button.recreate': '重新创建', 'common.table.operation': '操作', 'common.table.createTime': '创建时间', 'common.table.updateTime': '更新时间', @@ -278,5 +277,6 @@ export default { 'common.image.limit.height': '图片高度须为{height}。', 'common.remaining': '剩余 {count}', 'common.max': '最大 {count}', - 'common.validate.group': '请填写完整的{group}配置' + 'common.validate.group': '请填写完整的{group}配置', + 'common.preferences': '偏好设置' };