forked from baron/baron-sso
fix: resolve i18n resource check failures and restore logout functionality
This commit is contained in:
@@ -73,11 +73,16 @@ function parseTomlKeys(filePath) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const key = line.slice(0, eqIndex).trim();
|
||||
let key = line.slice(0, eqIndex).trim();
|
||||
if (!key) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Strip quotes if present
|
||||
if (key.startsWith('"') && key.endsWith('"')) {
|
||||
key = key.slice(1, -1);
|
||||
}
|
||||
|
||||
const fullKey = [...currentSection, key].join('.');
|
||||
keys.add(fullKey);
|
||||
}
|
||||
|
||||
45
tools/i18n-scanner/manual-keys.ts
Normal file
45
tools/i18n-scanner/manual-keys.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
// This file is used by tools/i18n-scanner to mark keys as used.
|
||||
// These keys are either used dynamically or in a way that the scanner cannot detect.
|
||||
|
||||
import { t } from "../../adminfront/src/lib/i18n";
|
||||
|
||||
// Navigation
|
||||
t("ui.admin.nav.overview");
|
||||
t("ui.admin.nav.tenant_dashboard");
|
||||
t("ui.admin.nav.user_groups");
|
||||
t("ui.admin.nav.tenants");
|
||||
t("ui.admin.nav.users");
|
||||
t("ui.admin.nav.api_keys");
|
||||
t("ui.admin.nav.audit_logs");
|
||||
t("ui.admin.nav.auth_guard");
|
||||
t("ui.admin.nav.logout");
|
||||
t("ui.admin.nav.relying_parties");
|
||||
|
||||
// Common & Info
|
||||
t("err.common.unknown");
|
||||
t("msg.info.saved_success");
|
||||
|
||||
// Userfront Error - Ory
|
||||
t("msg.userfront.error.ory.access_denied");
|
||||
t("msg.userfront.error.ory.consent_required");
|
||||
t("msg.userfront.error.ory.interaction_required");
|
||||
t("msg.userfront.error.ory.invalid_client");
|
||||
t("msg.userfront.error.ory.invalid_grant");
|
||||
t("msg.userfront.error.ory.invalid_request");
|
||||
t("msg.userfront.error.ory.invalid_scope");
|
||||
t("msg.userfront.error.ory.login_required");
|
||||
t("msg.userfront.error.ory.request_forbidden");
|
||||
t("msg.userfront.error.ory.server_error");
|
||||
t("msg.userfront.error.ory.temporarily_unavailable");
|
||||
t("msg.userfront.error.ory.unauthorized_client");
|
||||
t("msg.userfront.error.ory.unsupported_response_type");
|
||||
|
||||
// Userfront Error - Whitelist
|
||||
t("msg.userfront.error.whitelist.bad_request");
|
||||
t("msg.userfront.error.whitelist.invalid_session");
|
||||
t("msg.userfront.error.whitelist.not_found");
|
||||
t("msg.userfront.error.whitelist.password_or_email_mismatch");
|
||||
t("msg.userfront.error.whitelist.rate_limited");
|
||||
t("msg.userfront.error.whitelist.recovery_expired");
|
||||
t("msg.userfront.error.whitelist.recovery_invalid");
|
||||
t("msg.userfront.error.whitelist.verification_required");
|
||||
Reference in New Issue
Block a user