diff options
Diffstat (limited to 'src/components/ScotsounCdGallery.astro')
| -rw-r--r-- | src/components/ScotsounCdGallery.astro | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/components/ScotsounCdGallery.astro b/src/components/ScotsounCdGallery.astro index 6f6c794..0a8cd92 100644 --- a/src/components/ScotsounCdGallery.astro +++ b/src/components/ScotsounCdGallery.astro @@ -1,13 +1,8 @@ --- import { getAllScotsoun } from '$data/scotsoun'; -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 scotsoun = await getAllScotsoun(); --- |
