Various little adjustments relative to the new i18n API

This commit is contained in:
Joseph Garrone
2024-09-21 22:35:30 +02:00
parent e8d3d3d741
commit 8623037224
9 changed files with 20 additions and 9 deletions

View File

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