summaryrefslogtreecommitdiff
path: root/src/components/LallansIssueContributions.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/LallansIssueContributions.astro')
-rw-r--r--src/components/LallansIssueContributions.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/LallansIssueContributions.astro b/src/components/LallansIssueContributions.astro
index 9cf46da..98824de 100644
--- a/src/components/LallansIssueContributions.astro
+++ b/src/components/LallansIssueContributions.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 type { Contribution } from '$types/LallansIssue';
interface Props {
@@ -9,7 +9,7 @@ interface Props {
}
const { contributions } = Astro.props;
-const locale = getLocaleFromPath(Astro.url.pathname);
+const locale = getLocaleFromPathOrThrow(Astro.url.pathname);
const t = translate(locale);
---