diff options
Diffstat (limited to 'src/routes/(app)/settings')
| -rw-r--r-- | src/routes/(app)/settings/+layout.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/(app)/settings/+layout.svelte b/src/routes/(app)/settings/+layout.svelte index 99bdc4ce..29e9489c 100644 --- a/src/routes/(app)/settings/+layout.svelte +++ b/src/routes/(app)/settings/+layout.svelte @@ -5,7 +5,7 @@ import { applyAction, deserialize } from "$app/forms"; import Spinner from "$comp/Spinner.svelte"; import Pin from "$comp/Pin.svelte"; - import { loading, t } from "$lib/translations"; + import { loading, locale, setLocale, t } from "$lib/translations"; import { fd, fail, auth, post, sleep, warning, success } from "$lib/utils"; import { avatar, banner, signer, password, pin, save } from "$lib/store"; import { upload } from "$lib/upload"; @@ -238,7 +238,9 @@ console.log("Failed to save re-wrapped encryptedKeys", e); } } + const currentLocale = $locale; await invalidateAll(); + if (currentLocale !== $locale) await setLocale(currentLocale); if (pw) $password = pw; } |
