Update to Keycloakify 11
This commit is contained in:
parent
fb9b24f4d1
commit
5001393c21
4 changed files with 15 additions and 9 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue