diff options
author | 2025-02-09 17:57:01 +0000 | |
---|---|---|
committer | 2025-02-09 17:57:01 +0000 | |
commit | 6047017cc9242f93e6dc3ff77c3fedcb7faead7d (patch) | |
tree | 98a4f50e606ca5483683b4caf1609f4e93128e99 | |
parent | Bump keycloakify (diff) |
Support keycloakify breaking changes
-rw-r--r-- | src/login/i18n.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/login/i18n.ts b/src/login/i18n.ts index 017dc2c..f310421 100644 --- a/src/login/i18n.ts +++ b/src/login/i18n.ts @@ -1,5 +1,9 @@ -import { createUseI18n } from "keycloakify/login"; +import { i18nBuilder } from "keycloakify/login"; +import type { ThemeName } from "../kc.gen"; -export const { useI18n, ofTypeI18n } = createUseI18n({}); +const { useI18n, ofTypeI18n } = i18nBuilder + .withThemeName<ThemeName>() + .build() -export type I18n = typeof ofTypeI18n; +type I18n = typeof ofTypeI18n; +export { useI18n, type I18n }; |