From cab6aecb8c33c728052ce1f243547f8c4a388407 Mon Sep 17 00:00:00 2001 From: Pawel Boguslawski Date: Mon, 26 Feb 2024 18:03:43 +0100 Subject: [PATCH] Fix translation changing Fix problem with some translations unchanged on $locale change. Related: https://github.com/kaisermann/svelte-i18n/issues/224 Author-Change-Id: IB#1141363 Signed-off-by: Pawel Boguslawski --- src/routes/+layout.svelte | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index c0050fe..ea74ce0 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -61,19 +61,21 @@ SPDX-FileCopyrightText: 2024 Informatyka Boguslawski sp. z o.o. sp.k. - +{#key $locale} + - -{#if $smallWindow !== undefined} - {#if $progressOpen} - + {#if $smallWindow !== undefined} + {#if $progressOpen} + + {/if} {/if} -{/if} - + - - + + - - + + +{/key}