Persist language selection to localStorage

This commit is contained in:
Deluan
2020-04-15 21:04:01 -04:00
committed by Deluan Quintão
parent bf6ec67528
commit a6c9bf1b15
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -34,6 +34,7 @@ const SelectLanguage = (props) => {
choices={langChoices}
onChange={(event) => {
setLocale(event.target.value)
localStorage.setItem('locale', event.target.value)
}}
/>
)