Start implementing per theme variant translations and ability to add extra languages

This commit is contained in:
Joseph Garrone
2024-09-15 16:55:18 +02:00
parent e15f13646c
commit aad89a2001
7 changed files with 250 additions and 27 deletions

View File

@ -1,5 +1,9 @@
import { createUseI18n } from "../../dist/login";
import { i18nApi } from "../../dist/login";
import type { ThemeName } from "../kc.gen";
export const { useI18n, ofTypeI18n } = createUseI18n({});
export const { useI18n, ofTypeI18n } = i18nApi
.withThemeName<ThemeName>()
.withTranslations({})
.create();
export type I18n = typeof ofTypeI18n;