From 85ea619b18def3b7f7c26f03367f898b44a6c403 Mon Sep 17 00:00:00 2001 From: jialin Date: Thu, 12 Mar 2026 19:34:14 +0800 Subject: [PATCH] fix: title for editing apikey --- src/locales/en-US/apikeys.ts | 1 + src/locales/ja-JP/apikeys.ts | 1 + src/locales/ru-RU/apikeys.ts | 1 + src/locales/zh-CN/apikeys.ts | 1 + src/pages/api-keys/index.tsx | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/locales/en-US/apikeys.ts b/src/locales/en-US/apikeys.ts index fef18917..f718efea 100644 --- a/src/locales/en-US/apikeys.ts +++ b/src/locales/en-US/apikeys.ts @@ -2,6 +2,7 @@ export default { 'apikeys.title': 'API Keys', 'apikeys.table.apikeys': 'keys', 'apikeys.button.create': 'Add API Key', + 'apikeys.button.edit': 'Edit API Key', 'apikeys.title.save': 'Save API Key', 'apikeys.form.expiretime': 'Expiration', 'apikeys.form.apikey': 'API Key', diff --git a/src/locales/ja-JP/apikeys.ts b/src/locales/ja-JP/apikeys.ts index 5dde7623..9211a108 100644 --- a/src/locales/ja-JP/apikeys.ts +++ b/src/locales/ja-JP/apikeys.ts @@ -2,6 +2,7 @@ export default { 'apikeys.title': 'APIキー', 'apikeys.table.apikeys': 'キー', 'apikeys.button.create': '新しいAPIキーを作成', + 'apikeys.button.edit': 'APIキーを編集', 'apikeys.title.save': 'APIキーを保存', 'apikeys.form.expiretime': '有効期限', 'apikeys.form.apikey': 'APIキー', diff --git a/src/locales/ru-RU/apikeys.ts b/src/locales/ru-RU/apikeys.ts index 3d092133..6612dce0 100644 --- a/src/locales/ru-RU/apikeys.ts +++ b/src/locales/ru-RU/apikeys.ts @@ -2,6 +2,7 @@ export default { 'apikeys.title': 'API-ключи', 'apikeys.table.apikeys': 'Ключи', 'apikeys.button.create': 'Создать API-ключ', + 'apikeys.button.edit': 'Редактировать API-ключ', 'apikeys.title.save': 'Сохранить API-ключ', 'apikeys.form.expiretime': 'Срок действия', 'apikeys.form.apikey': 'API-ключ', diff --git a/src/locales/zh-CN/apikeys.ts b/src/locales/zh-CN/apikeys.ts index 7d50c9a8..ba174418 100644 --- a/src/locales/zh-CN/apikeys.ts +++ b/src/locales/zh-CN/apikeys.ts @@ -2,6 +2,7 @@ export default { 'apikeys.title': 'API 密钥', 'apikeys.table.apikeys': '密钥', 'apikeys.button.create': '添加 API 密钥', + 'apikeys.button.edit': '编辑 API 密钥', 'apikeys.title.save': '保存 API 密钥', 'apikeys.form.expiretime': '过期时间', 'apikeys.form.apikey': 'API 密钥', diff --git a/src/pages/api-keys/index.tsx b/src/pages/api-keys/index.tsx index 1fe761e1..05086345 100644 --- a/src/pages/api-keys/index.tsx +++ b/src/pages/api-keys/index.tsx @@ -62,7 +62,7 @@ const APIKeys: React.FC = () => { const handleEditKey = (record: ListItem) => { setOpenAddModal({ open: true, - title: 'Edit API Key', + title: intl.formatMessage({ id: 'apikeys.button.edit' }), action: PageAction.EDIT, currentData: record });