feat: add @intlify/unplugin-vue-i18n #2772
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "dpschen/frontend:feature/add-unplugin-vue-i18n"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This replaces #2676
When you don't use the
eeac378749
to2d65447fcb
WIP: feat: add @intlify/unplugin-vue-i18nto feat: add @intlify/unplugin-vue-i18nHi dpschen!
Thank you for creating a PR!
I've deployed the changes of this PR on a preview environment under this URL: https://2772-feature-add-unplugin-vue-i18n--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.
Have a nice day!
@ -108,2 +108,3 @@
app.mount('#app')
setLanguage().then(() => {
app.mount('#app')
So the current locale will be loaded before the app is even mounted?
Yes. This might impct the loading speed a bit. But might improve the perceived speed at the same time. Also the user get's to see the language for the loading that he probably used the last time. I just realize that we should add a language selector on the login, reset etc screens.
My original goal was to also remove the default language until I realized that it's also used as a fallback. Because of that no matter what english has to be loaded, which is annoying. Would be better if we could be sure that all strings are in all languages so that even if we need to fallback, that fallback will already be part of the incompletely translated local language file.
Doesn't crowdin already does this? https://kolaente.dev/vikunja/frontend/src/branch/main/src/i18n/lang/nl-NL.json#L21
Seems to work great!