aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-02-09 17:57:01 +0000
committerGravatar Chris Lovering <[email protected]>2025-02-09 17:57:01 +0000
commit6047017cc9242f93e6dc3ff77c3fedcb7faead7d (patch)
tree98a4f50e606ca5483683b4caf1609f4e93128e99
parentBump keycloakify (diff)
Support keycloakify breaking changes
-rw-r--r--src/login/i18n.ts10
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 };