summaryrefslogtreecommitdiff
path: root/src/components/Scotsoun.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-26 16:58:27 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-26 16:58:27 +0100
commitf4eb8b6fc931f7ded138dceb2b9df4c63ac7e353 (patch)
treeca189d7ff7beb80a2626c0747a367e745374cf78 /src/components/Scotsoun.astro
parentc8f9f07197fa49ad114a30d4c40bdf24443acc3a (diff)
Differentiates getLocaleFromPath failure strategies
Diffstat (limited to 'src/components/Scotsoun.astro')
-rw-r--r--src/components/Scotsoun.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Scotsoun.astro b/src/components/Scotsoun.astro
index c1d8fdf..4825423 100644
--- a/src/components/Scotsoun.astro
+++ b/src/components/Scotsoun.astro
@@ -5,14 +5,14 @@ import tComponent from '$i18n/translations/components/scotsoun';
import type Scotsoun from '$types/Scotsoun';
import PayPalButtons from './PayPalButtons.astro';
import relativePath from '$lib/relativePath';
-import getLocaleFromPath from '$lib/getLocaleFromPath';
+import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath';
interface Props {
scotsoun: Scotsoun;
}
const { scotsoun } = Astro.props;
-const locale = getLocaleFromPath(Astro.url.pathname);
+const locale = getLocaleFromPathOrThrow(Astro.url.pathname);
const t = translate(locale);
---