From d817ae446b3ab3e4da000cb6ae7bffc92a197be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rufus=20Kogg=20R=C3=B6jder?= Date: Sat, 9 Nov 2024 21:13:55 +0100 Subject: [PATCH] fix: switching languages when writing a post clears all content (#556) * Fix 552: check if language changes before invalidating * Fix 551: by subscribing to onSetLanguageTag --- src/routes/LanguageSwitcher.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/LanguageSwitcher.svelte b/src/routes/LanguageSwitcher.svelte index 5ec7b5c5..d02fb575 100644 --- a/src/routes/LanguageSwitcher.svelte +++ b/src/routes/LanguageSwitcher.svelte @@ -1,5 +1,5 @@ invalidateAll()} > {languageTag() === "sv" ? "EN" : "SV"}