Skip to content

Commit

Permalink
feat(app-state.js): update the html document lang when when the app l…
Browse files Browse the repository at this point in the history
…anguage is changed
  • Loading branch information
amoncaldas committed Jan 11, 2022
1 parent 3876e14 commit 5fa4508
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/modules/app-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ const actions = {
}
commit('mapSettings', settingsToKeepInAppStore)
localStorage.setItem('mapSettings', JSON.stringify(savingSettings))
// Update the html language
document.documentElement.lang = savingSettings.locale
resolve(settingsToKeepInAppStore)
})
}
Expand Down

0 comments on commit 5fa4508

Please sign in to comment.