We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2857ea6 commit a3f115eCopy full SHA for a3f115e
src/lib/components/LanguageSelector.svelte
@@ -1,5 +1,6 @@
1
<script>
2
import { page } from '$app/stores';
3
+ import { base } from '$app/paths';
4
import { flip } from 'svelte/animate';
5
import { fly } from 'svelte/transition';
6
@@ -26,7 +27,7 @@
26
27
});
28
29
function changeLanguage(langCode) {
- window.location.href = `/${langCode}`;
30
+ window.location.href = `${base}/${langCode}`;
31
}
32
33
function getCurrentLanguage() {
0 commit comments