Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO committed Jan 12, 2025
1 parent e99a355 commit f27258a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ public class FrontEndI18nResourceChecker {
private static final String I18N_RESOURCE_FILE_NAME = "translation.json";
private static final List<String> TS_FILE_EXTENSIONS = Arrays.asList(".ts", ".tsx");

private static final Set<String> IMPLICITLY_USED_RESOURCE_KEYS = Set.of("index.title", "init.title", "login.title");
private static final Set<String> 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<String> 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";
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@
"action": "Action"
},
"createServiceSource": "Create Service Source",
"editServiceSource": "Edit Service Source",
"deleteConfirmation": "Are you sure you want to delete <1>{{currentServiceSourceName}}</1>?",
"serviceSourceForm": {
"type": "Type",
Expand Down

0 comments on commit f27258a

Please sign in to comment.