Skip to content

Commit a3f115e

Browse files
committed
init
1 parent 2857ea6 commit a3f115e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/components/LanguageSelector.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script>
22
import { page } from '$app/stores';
3+
import { base } from '$app/paths';
34
import { flip } from 'svelte/animate';
45
import { fly } from 'svelte/transition';
56
@@ -26,7 +27,7 @@
2627
});
2728
2829
function changeLanguage(langCode) {
29-
window.location.href = `/${langCode}`;
30+
window.location.href = `${base}/${langCode}`;
3031
}
3132
3233
function getCurrentLanguage() {

0 commit comments

Comments
 (0)