summaryrefslogtreecommitdiff
path: root/src/components/ScotsounCdGallery.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-13 20:41:29 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-13 20:41:29 +0100
commit7781c69153e3956ca14684fe9a287fbbb8a01082 (patch)
tree6bf18977ee93608aead54dc2322c0d42c2284f78 /src/components/ScotsounCdGallery.astro
parent71eac2d383c9918645e99b6b845fb8f4faecf346 (diff)
Determines current locale with lib function
Diffstat (limited to 'src/components/ScotsounCdGallery.astro')
-rw-r--r--src/components/ScotsounCdGallery.astro9
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();
---