Replies: 2 comments 2 replies
-
Hi jpsc no expert here but nuxt is a server side rendering tool .. and since i18n introduces new urls if there is javascript enabled then everything is loaded once and it acts like a Single Page application.. but if javascript is not enabled then all the translations should happen on the server side on each different url /en/page-1 /el/page-1 and work without javascript Here are my findings so far (#2097 (comment)) and it seems i18n is not working as expected and it seems it also needs a server plugin to even load the translations when javascript is off.. this is important for all the bots that index your page.. the content and its translated versions need to preexist so your page can be indexed by search engines .. this is the main reason we use nuxt instead of vue since we need all those server side rendering capabilities for better SEO |
Beta Was this translation helpful? Give feedback.
-
Hei @zifnab87 while I understand what you are saying the issue you reported is definitely a bug, what I'm talking is a bit different. What I'm suggesting that without this requirement a lot of runtime code for |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been integrating this module (v8) into an application and I've noticed that there is (as expected) an added size to the initial entry bundle of a Nuxt 3 application. There are the translations and some runtime required features. Again that is totally normal.
While I was using my application I realized that we don't actually have the need to the language to change immediatly. It would be fine if we could have a hard page reset to load the new language. From my understanding this is how
vue-i18n
works.Does it make sense or would it be possible (from a concept perspective) to remove most of runtime and lower the amount of translations available because you already know you won't need them until you to a full page refresh?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions