summaryrefslogtreecommitdiff
path: root/src/components/ScotsounCdGallery.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ScotsounCdGallery.astro')
-rw-r--r--src/components/ScotsounCdGallery.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ScotsounCdGallery.astro b/src/components/ScotsounCdGallery.astro
index 40940a1..e1a9aaf 100644
--- a/src/components/ScotsounCdGallery.astro
+++ b/src/components/ScotsounCdGallery.astro
@@ -1,9 +1,9 @@
---
import { getAllScotsoun } from '$data/scotsoun';
-import getLocaleFromPath from '$lib/getLocaleFromPath';
+import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath';
import type Scotsoun from '$types/Scotsoun';
-const locale = getLocaleFromPath(Astro.url.pathname);
+const locale = getLocaleFromPathOrThrow(Astro.url.pathname);
const scotsoun = (await getAllScotsoun()).sort(scotsounIdDescending);
function scotsounIdDescending(scotsoun1: Scotsoun, scotsoun2: Scotsoun) {