diff options
Diffstat (limited to 'src/components/Navbar/Logo.astro')
| -rw-r--r-- | src/components/Navbar/Logo.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Navbar/Logo.astro b/src/components/Navbar/Logo.astro index 6dc372c..dc87d19 100644 --- a/src/components/Navbar/Logo.astro +++ b/src/components/Navbar/Logo.astro @@ -1,9 +1,9 @@ --- import translate from '$i18n/translate'; -import getLocaleFromPath from '$lib/getLocaleFromPath'; +import { getLocaleFromPathOrDefault } from '$lib/getLocaleFromPath'; import tSite from '$i18n/translations/site'; -const locale = getLocaleFromPath(Astro.url.pathname); +const locale = getLocaleFromPathOrDefault(Astro.url.pathname); const t = translate(locale); --- |
