mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-18 18:54:07 +00:00
Dynamically load language files (#446)
This commit is contained in:
committed by
GitHub
parent
32f7bc053a
commit
a40bf5840d
@@ -200,6 +200,9 @@ async function updateUserData() {
|
||||
// Update Language if changed
|
||||
|
||||
if (userStore.currentUserSettings.language !== userForm.language) {
|
||||
// Load the new language dynamically before updating settings
|
||||
await window.loadLanguage(userForm.language)
|
||||
|
||||
await userStore.updateUserSettings({
|
||||
settings: {
|
||||
language: userForm.language,
|
||||
|
||||
Reference in New Issue
Block a user