Export fallback language tag ("en") as a constant
This commit is contained in:
parent
42c9d39e02
commit
a60f05415b
@ -3,8 +3,7 @@ import { assert } from "tsafe/assert";
|
|||||||
import messages_fallbackLanguage from "./baseMessages/en";
|
import messages_fallbackLanguage from "./baseMessages/en";
|
||||||
import { getMessages } from "./baseMessages";
|
import { getMessages } from "./baseMessages";
|
||||||
import type { KcContext } from "../KcContext";
|
import type { KcContext } from "../KcContext";
|
||||||
|
import { fallbackLanguageTag } from "keycloakify/bin/shared/constants";
|
||||||
export const fallbackLanguageTag = "en";
|
|
||||||
|
|
||||||
export type KcContextLike = {
|
export type KcContextLike = {
|
||||||
locale?: {
|
locale?: {
|
||||||
|
@ -2,4 +2,3 @@ import type { GenericI18n, MessageKey, KcContextLike } from "./i18n";
|
|||||||
export type { MessageKey, KcContextLike };
|
export type { MessageKey, KcContextLike };
|
||||||
export type I18n = GenericI18n<MessageKey>;
|
export type I18n = GenericI18n<MessageKey>;
|
||||||
export { createUseI18n } from "./useI18n";
|
export { createUseI18n } from "./useI18n";
|
||||||
export { fallbackLanguageTag } from "./i18n";
|
|
||||||
|
@ -67,3 +67,5 @@ export type LoginThemePageId = (typeof loginThemePageIds)[number];
|
|||||||
export type AccountThemePageId = (typeof accountThemePageIds)[number];
|
export type AccountThemePageId = (typeof accountThemePageIds)[number];
|
||||||
|
|
||||||
export const containerName = "keycloak-keycloakify";
|
export const containerName = "keycloak-keycloakify";
|
||||||
|
|
||||||
|
export const fallbackLanguageTag = "en";
|
||||||
|
@ -3,8 +3,7 @@ import { assert } from "tsafe/assert";
|
|||||||
import messages_fallbackLanguage from "./baseMessages/en";
|
import messages_fallbackLanguage from "./baseMessages/en";
|
||||||
import { getMessages } from "./baseMessages";
|
import { getMessages } from "./baseMessages";
|
||||||
import type { KcContext } from "../KcContext";
|
import type { KcContext } from "../KcContext";
|
||||||
|
import { fallbackLanguageTag } from "keycloakify/bin/shared/constants";
|
||||||
export const fallbackLanguageTag = "en";
|
|
||||||
|
|
||||||
export type KcContextLike = {
|
export type KcContextLike = {
|
||||||
locale?: {
|
locale?: {
|
||||||
|
@ -2,4 +2,3 @@ import type { GenericI18n, MessageKey, KcContextLike } from "./i18n";
|
|||||||
export type { MessageKey, KcContextLike };
|
export type { MessageKey, KcContextLike };
|
||||||
export type I18n = GenericI18n<MessageKey>;
|
export type I18n = GenericI18n<MessageKey>;
|
||||||
export { createUseI18n } from "./useI18n";
|
export { createUseI18n } from "./useI18n";
|
||||||
export { fallbackLanguageTag } from "./i18n";
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user