Rename .create() by .build() for i18nBuilder

This commit is contained in:
Joseph Garrone
2024-09-21 23:21:15 +02:00
parent b3c4208e44
commit 20cdbb6185
7 changed files with 36 additions and 41 deletions

View File

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