diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-26 16:58:27 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-26 16:58:27 +0100 |
| commit | f4eb8b6fc931f7ded138dceb2b9df4c63ac7e353 (patch) | |
| tree | ca189d7ff7beb80a2626c0747a367e745374cf78 /src/components/Footer.astro | |
| parent | c8f9f07197fa49ad114a30d4c40bdf24443acc3a (diff) | |
Differentiates getLocaleFromPath failure strategies
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); --- |
