keycloak-theme-cloud/src/login/i18n.ts

12 lines
295 B
TypeScript
Raw Normal View History

2024-09-23 00:37:16 +02:00
import { i18nBuilder } from "keycloakify/login";
import type { ThemeName } from "../kc.gen";
2024-06-06 01:44:57 +02:00
2024-09-23 00:37:16 +02:00
/** @see: https://docs.keycloakify.dev/i18n */
const { useI18n, ofTypeI18n } = i18nBuilder
.withThemeName<ThemeName>()
.build();
2024-06-06 01:44:57 +02:00
2024-09-23 00:37:16 +02:00
type I18n = typeof ofTypeI18n;
export { useI18n, type I18n };