You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a vue3 app which use dynamic import in the router, bundled with vite, using default config
This automatically leads to
one "index" bundle for the root
one bundle per views
extra bundles for some libraries
I set up vue-18n (9.10.2) following the guide, compiled by vite using @intlify/unplugin-vue-i18n/vite (3.0.1) and with one json static files per languages containing all languages keys of my app.
I imported messages in my app using the import messages from "@intlify/unplugin-vue-i18n/messages"; helper
When I bundle my app (vite build --ssrManifest), all translation keys all of languages are bundled into the index bundle (which is getting too big).
Is it doable to have language keys bundled into the bundle of the view they are used into and how to achieve this ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a vue3 app which use dynamic import in the router, bundled with vite, using default config
This automatically leads to
I set up vue-18n (9.10.2) following the guide, compiled by vite using
@intlify/unplugin-vue-i18n/vite
(3.0.1) and with one json static files per languages containing all languages keys of my app.I imported messages in my app using the
import messages from "@intlify/unplugin-vue-i18n/messages";
helperWhen I bundle my app (
vite build --ssrManifest
), all translation keys all of languages are bundled into the index bundle (which is getting too big).Is it doable to have language keys bundled into the bundle of the view they are used into and how to achieve this ?
Beta Was this translation helpful? Give feedback.
All reactions