Update to Keycloakify 11
This commit is contained in:
@ -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 };
|
||||
|
Reference in New Issue
Block a user