-
-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
hi
When using this plugin in inertia
There is a hydration problem in SSR mode
In the following case
ssr.ts
.use(i18nVue, {
lang: "fa",
resolve: (lang) => {
const langs = import.meta.glob("../../lang/*.json", { eager: true });
return (langs[`../../lang/${lang}.json`] as any).default;
},
})
Error: Hydration completed but contains mismatches
And in the following case
ssr.ts
.use(i18nVue, {
resolve: (lang) => {
const langs = import.meta.glob("../../lang/*.json", { eager: true });
return (langs[`../../lang/${lang}.json`] as any).default;
},
})
The hydrated problem is solved. But the texts in the page source are not translated. and are displayed as follows:
messages.example ...
Metadata
Metadata
Assignees
Labels
No labels