summaryrefslogtreecommitdiff
path: root/src/components/Navbar/NavLinks.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Navbar/NavLinks.astro')
-rw-r--r--src/components/Navbar/NavLinks.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Navbar/NavLinks.astro b/src/components/Navbar/NavLinks.astro
index fe2ade0..798c24e 100644
--- a/src/components/Navbar/NavLinks.astro
+++ b/src/components/Navbar/NavLinks.astro
@@ -1,11 +1,11 @@
---
-import getLocaleFromPath from '$lib/getLocaleFromPath';
+import { getLocaleFromPathOrDefault } from '$lib/getLocaleFromPath';
import translate from '$i18n/translate';
import tNews from '$i18n/translations/pages/news';
import tFurthsettins from '$i18n/translations/pages/furthsettins';
import tHame from '$i18n/translations/pages/home';
-const locale = getLocaleFromPath(Astro.url.pathname);
+const locale = getLocaleFromPathOrDefault(Astro.url.pathname);
const t = translate(locale);
---