Static GitHub Issues

[1879] _lang param for all pages

prev: How to add webpack config in WebStorm 2017.2
next: nuxtServerInit cannot commit state

I have used the nuxt example of i18n internationalization. My webapp operates for 3 languages (en, kk, ru). I have the language switch in the header section of my application, meaning that a user can change the locale at any page. User can also change the locale by manually calling a url with locale parameter in the url.

Now suppose a user goes from index page to study ('/study') page and the selected locale was kk. Going to study is done from a nuxt-link. host/kk changes to host/study. Locale is somehow omitted from the url.

How should I handle this? Can I change the base url of nuxt from / to kk/, so that all pages are prefixed with kk/.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1686">#c1686</a>)</em></sub></div>