forked from cms/tibi-svelte-starter
Kleinere Anpassungen für Seiten- und Navigations- Bearbeitung.
This commit is contained in:
@@ -14,13 +14,9 @@
|
||||
}
|
||||
|
||||
const setLanguage = (lang: string) => {
|
||||
let path = $location.path.split("/")
|
||||
path[1] = lang
|
||||
|
||||
$location.path = path.join("/")
|
||||
$currentLang = lang
|
||||
|
||||
navigate($location.path + $location.search, { replace: true })
|
||||
// $location.path = "/" + lang
|
||||
// navigate($location.path + $location.search, { replace: true })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user