diff --git a/src/bin/initialize-account-theme/src/multi-page/i18n.ts b/src/bin/initialize-account-theme/src/multi-page/i18n.ts index c4ad70c1..49062b8c 100644 --- a/src/bin/initialize-account-theme/src/multi-page/i18n.ts +++ b/src/bin/initialize-account-theme/src/multi-page/i18n.ts @@ -1,5 +1,12 @@ -import { createUseI18n } from "keycloakify/account"; +import { i18nBuilder } from "keycloakify/account"; +import type { ThemeName } from "../kc.gen"; -export const { useI18n, ofTypeI18n } = createUseI18n({}); +const { useI18n, ofTypeI18n } = i18nBuilder + .withThemeName() + .withExtraLanguages({}) + .withCustomTranslations({}) + .build(); -export type I18n = typeof ofTypeI18n; +type I18n = typeof ofTypeI18n; + +export { useI18n, type I18n };