neetjn / v-localize

Simple localization plugin for the amazing Vue.js.

Home Page:https://neetjn.github.io/v-localize/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add new optional for optional local storage to cache last locale

neetjn opened this issue · comments

v-localize currently assumes it's running in a browser on initialization, and this may not be the case if the given application is using SSR and/or initializing Vue on the server.

I'd like to add an option webStore which will also appropriately check if window is defined.

Subsequently, stale and hot mode should probably be removed and $locale(...) should return a promise.