[Vuejs]-How to view multi lang in vue + laravel

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.

Leave a comment