0๐
get the lang parameter using window.location
, then store that in the browser:
localStorage.setItem('lang', lang);
to retrieve it later use:
var lang = localStorage.getItem('lang');
-1๐
I suggest you the vue-i18n lib for handling the multi language.
There is my older answer how can you use this lib.
Source:stackexchange.com