From 7d99dba890f3522e63d2e8d5b7666d1da1b526f4 Mon Sep 17 00:00:00 2001 From: kyy Date: Mon, 18 May 2026 11:45:52 +0900 Subject: [PATCH] =?UTF-8?q?API=20=ED=82=A4=20=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=20=EC=98=81=EB=AC=B8=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adminfront/src/lib/i18n.test.ts | 2 -- adminfront/src/locales/en.toml | 50 ++++++++++++++++----------------- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/adminfront/src/lib/i18n.test.ts b/adminfront/src/lib/i18n.test.ts index 825d70b7..2a3ba0b2 100644 --- a/adminfront/src/lib/i18n.test.ts +++ b/adminfront/src/lib/i18n.test.ts @@ -25,8 +25,6 @@ describe("i18n utility", () => { it("respects locale in localStorage", () => { window.localStorage.setItem("locale", "en"); - // We expect some key that exists in en.toml - // Let's use a common one or a fallback if we don't know the content expect(t("ui.common.save", "Save")).toBe("Save"); }); diff --git a/adminfront/src/locales/en.toml b/adminfront/src/locales/en.toml index 5e8ec076..62b1e668 100644 --- a/adminfront/src/locales/en.toml +++ b/adminfront/src/locales/en.toml @@ -80,27 +80,27 @@ forbidden = "You do not have permission to perform this action." [msg.admin.api_keys] [msg.admin.api_keys.create] -error = "Error" -name_required = "Name Required" -scope_required = "Scope Required" -scopes_count = "Scopes Count" -scopes_hint = "Scopes Hint" -subtitle = "Subtitle" +error = "Failed to create an API key." +name_required = "Name is required." +scope_required = "Select at least one scope." +scopes_count = "A total of {{count}} scopes will be assigned." +scopes_hint = "The key will be active immediately after creation." +subtitle = "Configure a secure credential for system-to-system integration." [msg.admin.api_keys.create.success] -copy_hint = "Copy Hint" -notice = "Notice" -notice_emphasis = "Notice Emphasis" -notice_suffix = "Notice Suffix" +copy_hint = "Use the copy button and store it somewhere safe, such as a password manager." +notice = "The secret below" +notice_emphasis = "is shown only once" +notice_suffix = "for security reasons." [msg.admin.api_keys.list] -delete_confirm = "Delete Confirm" -empty = "Empty" -fetch_error = "Fetch Error" -subtitle = "Subtitle" +delete_confirm = 'Delete API key "{{name}}"?' +empty = "There are no registered API keys." +fetch_error = "Failed to load the API key list." +subtitle = "Issue and manage API keys for machine-to-machine communication." [msg.admin.api_keys.list.registry] -count = "Count" +count = "Total {{count}} API keys" [msg.admin.audit] empty = "Empty" @@ -738,21 +738,21 @@ title = "Admin Control" [ui.admin.api_keys] [ui.admin.api_keys.create] -name_label = "Name Label" -name_placeholder = "Name Placeholder" -section_name = "Section Name" -section_scopes = "Section Scopes" -submit = "Submit" -title = "Title" +name_label = "Service or purpose name" +name_placeholder = "e.g. Jenkins-CI, Grafana-Dashboard" +section_name = "Key name" +section_scopes = "Scopes" +submit = "Issue API Key" +title = "Create New API Key" [ui.admin.api_keys.create.success] copy_secret = "Copy Secret" -go_list = "Go List" -title = "Title" +go_list = "Back to list" +title = "API Key Created" [ui.admin.api_keys.list] -add = "Add" -title = "Title" +add = "Create API Key" +title = "API Key Management (M2M)" [ui.admin.api_keys.list.breadcrumb] list = "List"