diff options
Diffstat (limited to 'src/components/LallansIssue.astro')
| -rw-r--r-- | src/components/LallansIssue.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/LallansIssue.astro b/src/components/LallansIssue.astro index 37875e3..efbcdec 100644 --- a/src/components/LallansIssue.astro +++ b/src/components/LallansIssue.astro @@ -1,7 +1,7 @@ --- import translate from '$i18n/translate'; import tSite from '$i18n/translations/site'; -import getLocaleFromPath from '$lib/getLocaleFromPath'; +import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath'; import relativePath from '$lib/relativePath'; import type LallansIssue from '$types/LallansIssue'; import LallansIssueContributions from './LallansIssueContributions.astro'; @@ -13,7 +13,7 @@ interface Props { } const { issue } = Astro.props; -const locale = getLocaleFromPath(Astro.url.pathname); +const locale = getLocaleFromPathOrThrow(Astro.url.pathname); const t = translate(locale); --- |
