Skip to content

Commit

Permalink
fix: bug causing /en pages to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
danieladugyan committed Nov 9, 2024
1 parent d817ae4 commit aa1391b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/routes/LanguageSwitcher.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
import { i18n } from "$lib/utils/i18n";
import { invalidateAll } from "$app/navigation";
import { twMerge } from "tailwind-merge";
import { browser } from "$app/environment";
let clazz = "";
export { clazz as class };
onSetLanguageTag(() => {
invalidateAll();
});
if (browser) {
onSetLanguageTag(() => {
invalidateAll();
});
}
</script>

<a
Expand Down

0 comments on commit aa1391b

Please sign in to comment.