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

Internationalization with vue-i18n

Get access to this course, 20 others, and future Vue.js courses!

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.