Update to Keycloakify 11

This commit is contained in:
Joseph Garrone
2024-09-23 00:37:16 +02:00
parent fb9b24f4d1
commit 5001393c21
4 changed files with 15 additions and 9 deletions

View File

@ -1,5 +1,11 @@
import { createUseI18n } from "keycloakify/login";
import { i18nBuilder } from "keycloakify/login";
import type { ThemeName } from "../kc.gen";
export const { useI18n, ofTypeI18n } = createUseI18n({});
/** @see: https://docs.keycloakify.dev/i18n */
const { useI18n, ofTypeI18n } = i18nBuilder
.withThemeName<ThemeName>()
.build();
export type I18n = typeof ofTypeI18n;
type I18n = typeof ofTypeI18n;
export { useI18n, type I18n };