aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 };