Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: re-use the store locale on the client if set on server (nuxt-mo…
…dules#593) If `vuex.syncLocale` is true, then any locale determined on the server during SSR should be used as initial value by the client. This also allows - Not to determine the language twice when a page is loaded (once on the server, then again in the client) - Other plugins (e.g. user session in a universal app) to alter the locale during bootstrap (`await app.i18n.setLocale('xx')`) and make sure that that locale is re-used on the client.
- Loading branch information