Closed riderx closed 1 year ago
This PR is related to https://github.com/antfu/vitesse/issues/481 It allows us to lazy load all the translations.
https://github.com/antfu/vitesse/issues/481
I used the doc here: https://kazupon.github.io/vue-i18n/guide/lazy-loading.html and adapted to the way we load i18n in Vitesse, I'm not 100% that the best approach, but that seems to work.
Then I imported a new module to be able to pass to the app the list of the available langs without importing them.
It's tiny in the template.
Description
This PR is related to https://github.com/antfu/vitesse/issues/481 It allows us to lazy load all the translations.
Linked Issues
https://github.com/antfu/vitesse/issues/481
Additional context
I used the doc here: https://kazupon.github.io/vue-i18n/guide/lazy-loading.html and adapted to the way we load i18n in Vitesse, I'm not 100% that the best approach, but that seems to work.
Then I imported a new module to be able to pass to the app the list of the available langs without importing them.
Before :
After :
It's tiny in the template.
See the difference in my current app
Before :
After :