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