Various little adjustments relative to the new i18n API
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user