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

@ -5,7 +5,10 @@ import { Reflect } from "tsafe/Reflect";
const { useI18n, ofTypeI18n } = i18nInitializer
.withThemeName<"my-theme-1" | "my-theme-2">()
.withExtraLanguages({
he: () => import("./he")
he: {
label: "עברית",
getMessages: () => import("./he")
}
})
.withCustomTranslations({
en: {