diff --git a/src/account/i18n/i18n.tsx b/src/account/i18n/i18n.tsx index 19b0aceb..5d477801 100644 --- a/src/account/i18n/i18n.tsx +++ b/src/account/i18n/i18n.tsx @@ -3,8 +3,7 @@ import { assert } from "tsafe/assert"; import messages_fallbackLanguage from "./baseMessages/en"; import { getMessages } from "./baseMessages"; import type { KcContext } from "../KcContext"; - -export const fallbackLanguageTag = "en"; +import { fallbackLanguageTag } from "keycloakify/bin/shared/constants"; export type KcContextLike = { locale?: { diff --git a/src/account/i18n/index.ts b/src/account/i18n/index.ts index 40934a78..5e58b25b 100644 --- a/src/account/i18n/index.ts +++ b/src/account/i18n/index.ts @@ -2,4 +2,3 @@ import type { GenericI18n, MessageKey, KcContextLike } from "./i18n"; export type { MessageKey, KcContextLike }; export type I18n = GenericI18n; export { createUseI18n } from "./useI18n"; -export { fallbackLanguageTag } from "./i18n"; diff --git a/src/bin/shared/constants.ts b/src/bin/shared/constants.ts index cc35a86c..40882a02 100644 --- a/src/bin/shared/constants.ts +++ b/src/bin/shared/constants.ts @@ -67,3 +67,5 @@ export type LoginThemePageId = (typeof loginThemePageIds)[number]; export type AccountThemePageId = (typeof accountThemePageIds)[number]; export const containerName = "keycloak-keycloakify"; + +export const fallbackLanguageTag = "en"; diff --git a/src/login/i18n/i18n.tsx b/src/login/i18n/i18n.tsx index 05c9b109..cf4d18e9 100644 --- a/src/login/i18n/i18n.tsx +++ b/src/login/i18n/i18n.tsx @@ -3,8 +3,7 @@ import { assert } from "tsafe/assert"; import messages_fallbackLanguage from "./baseMessages/en"; import { getMessages } from "./baseMessages"; import type { KcContext } from "../KcContext"; - -export const fallbackLanguageTag = "en"; +import { fallbackLanguageTag } from "keycloakify/bin/shared/constants"; export type KcContextLike = { locale?: { diff --git a/src/login/i18n/index.ts b/src/login/i18n/index.ts index 40934a78..5e58b25b 100644 --- a/src/login/i18n/index.ts +++ b/src/login/i18n/index.ts @@ -2,4 +2,3 @@ import type { GenericI18n, MessageKey, KcContextLike } from "./i18n"; export type { MessageKey, KcContextLike }; export type I18n = GenericI18n; export { createUseI18n } from "./useI18n"; -export { fallbackLanguageTag } from "./i18n";