From f27258ab3d6e9aabf4da2082d8f9619bcc38bc6a Mon Sep 17 00:00:00 2001 From: CH3CHO Date: Sun, 12 Jan 2025 15:57:53 +0800 Subject: [PATCH] fixup --- .../higress/console/FrontEndI18nResourceChecker.java | 6 ++++-- frontend/src/locales/en-US/translation.json | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/console/src/test/java/com/alibaba/higress/console/FrontEndI18nResourceChecker.java b/backend/console/src/test/java/com/alibaba/higress/console/FrontEndI18nResourceChecker.java index 8401ace3..452429d2 100644 --- a/backend/console/src/test/java/com/alibaba/higress/console/FrontEndI18nResourceChecker.java +++ b/backend/console/src/test/java/com/alibaba/higress/console/FrontEndI18nResourceChecker.java @@ -42,10 +42,12 @@ public class FrontEndI18nResourceChecker { private static final String I18N_RESOURCE_FILE_NAME = "translation.json"; private static final List TS_FILE_EXTENSIONS = Arrays.asList(".ts", ".tsx"); - private static final Set IMPLICITLY_USED_RESOURCE_KEYS = Set.of("index.title", "init.title", "login.title"); + private static final Set IMPLICITLY_USED_RESOURCE_KEYS = Set.of("init.title", "login.title", "aiRoute.edit", + "tlsCertificate.editTlsCertificate", "serviceSource.editServiceSource", "llmProvider.edit", + "plugins.editPlugin", "route.editRoute", "domain.editDomain", "consumer.edit"); private static final List IMPLICITLY_USED_RESOURCE_KEY_PREFIXES = Arrays.asList("menu.", "request.error.", "serviceSource.types.", "llmProvider.providerTypes.", - "route.factorGroup.required.", "route.keyValueGroup.required."); + "route.factorGroup.required.", "route.keyValueGroup.required.", "plugins.configForm.", "plugins.subTitle."); private static final String LANG_CN = "zh-CN"; private static final String LANG_EN = "en-US"; diff --git a/frontend/src/locales/en-US/translation.json b/frontend/src/locales/en-US/translation.json index d9052264..35b021a5 100644 --- a/frontend/src/locales/en-US/translation.json +++ b/frontend/src/locales/en-US/translation.json @@ -351,6 +351,7 @@ "action": "Action" }, "createServiceSource": "Create Service Source", + "editServiceSource": "Edit Service Source", "deleteConfirmation": "Are you sure you want to delete <1>{{currentServiceSourceName}}?", "serviceSourceForm": { "type": "Type",