Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Internationalization with vue-i18n

Persist Locale Changes thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Persist Locale Changes

In the previous lesson, we learned how to change the active locale programmatically and how users can set their preferred locale through the user interface. However, we didn't persist the changes, which offers a bad user experience.

In this lesson, we'll learn how to persist the locale change with local storage, so our users don't have to choose their language on every page load.