Closed Temepest74 closed 1 year ago
And something weird, sometimes both works. But most of the time it is bugged
You should not use the trans
directly inside the script
since it can load before the i18n
loads the translation file.
The solution for that is to use that in a computed prop.
Also inside the template try to use the $t()
instead, to have the reactivity
You should not use the
trans
directly inside thescript
since it can load before thei18n
loads the translation file.The solution for that is to use that in a computed prop.
Also inside the template try to use the
$t()
instead, to have the reactivity
Oh it makes sense, mb, I am new to vue. Thank you
No worries! anything let me know.
I am using Vue with vite + typescript + sail if it is relevant vite.config.js
app.ts
Ok, my problem is with this setup