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
Hi,
We have a quite big json file already for all our transaltions, which (especially with slow internet) takes some time to load.
Now my question is, would it be technically possible to implement a vite plugin, which takes the original json and all vue files, transforms the vue files to add the i18n custom blocks and then outputs a slimmed json (as general terms should remain there).
Then give the transformed json files to the i18n plugin to do its magic.
The simplest approach would be most probably to configure different files (output files of the vite plugin) in nuxt.config.js, configure the vite plugin to take the big files and then tranform everything.
Do you see a smarter way on how to do that ?
Overall question, am I right that per component transltions will be included in the file of the component not in the big language.js file ?
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
-
Hi,
We have a quite big json file already for all our transaltions, which (especially with slow internet) takes some time to load.
Now my question is, would it be technically possible to implement a vite plugin, which takes the original json and all vue files, transforms the vue files to add the i18n custom blocks and then outputs a slimmed json (as general terms should remain there).
Then give the transformed json files to the i18n plugin to do its magic.
The simplest approach would be most probably to configure different files (output files of the vite plugin) in nuxt.config.js, configure the vite plugin to take the big files and then tranform everything.
Do you see a smarter way on how to do that ?
Overall question, am I right that per component transltions will be included in the file of the component not in the big language.js file ?
BR,
Sven
Beta Was this translation helpful? Give feedback.
All reactions