diff options
Diffstat (limited to 'src/components/Scotsoun.astro')
| -rw-r--r-- | src/components/Scotsoun.astro | 4 |
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); --- |
