Skip to content

Commit

Permalink
restructuring local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-addison-h committed Jun 5, 2024
1 parent 6436e37 commit 7a3aa13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/femr/ui/views/settings/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
.then(response => response.json())
.then(data => {
languageData = data;
const initialLanguage = localStorage.getItem('languageCode') || 'en';
let initialLanguage = @currentUser.getLanguageCode();
if (initialLanguage == null) {
initialLanguage = "en";
}
updateLanguage(initialLanguage);
document.getElementById('languageSelect').value = initialLanguage;
});
Expand Down

0 comments on commit 7a3aa13

Please sign in to comment.