summaryrefslogtreecommitdiff
path: root/src/components/LallansIssuesGallery.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/LallansIssuesGallery.astro')
-rw-r--r--src/components/LallansIssuesGallery.astro9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro
index c784156..f3db9b3 100644
--- a/src/components/LallansIssuesGallery.astro
+++ b/src/components/LallansIssuesGallery.astro
@@ -1,13 +1,8 @@
---
import { getAllLallansIssues } from '$data/lallans';
-import type Locale from '$types/Locale';
-
-interface Props {
- locale: Locale;
-}
-
-const { locale } = Astro.props;
+import getLocaleFromPath from '$lib/getLocaleFromPath';
+const locale = getLocaleFromPath(Astro.url.pathname);
const issues = await getAllLallansIssues();
---