Closed spotman closed 5 years ago
Hi,
you should be able to use the directive v-t
: https://panter.github.io/vue-i18next/guide/directive.html#v-t .
v-t
will wait for the i18next to be initialized. If not initialized it sets the element to hidden = true
and wait for i18next to be initialized and then set's hidden=false
If you run into problem, feel free to reopen this issue.
Thanks!
Hi there!
Thanks for your lib, it's very well done. However, I'm facing with an issue with VueI18next initialization before translation is fetched by i18next async backend. This leads to triggering all used keys as missing in
i18next-xnr-backend
(coz they are not loaded yet). I've usedi18next.init
with callback as a temporary fix but I think that this case needs to be covered by your library so VueI18next init will be executed only after i18next successful init.This is an example of my wrapper for i18n (issue is covered here):
and example of using this wrapper in the client code: