diff options
Diffstat (limited to 'src/components/LallansIssueContributions.astro')
| -rw-r--r-- | src/components/LallansIssueContributions.astro | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/LallansIssueContributions.astro b/src/components/LallansIssueContributions.astro index 425f66a..9cf46da 100644 --- a/src/components/LallansIssueContributions.astro +++ b/src/components/LallansIssueContributions.astro @@ -1,15 +1,15 @@ --- import translate from '$i18n/translate'; import tSite from '$i18n/translations/site'; +import getLocaleFromPath from '$lib/getLocaleFromPath'; import type { Contribution } from '$types/LallansIssue'; -import type Locale from '$types/Locale'; interface Props { contributions: Contribution[]; - locale: Locale; } -const { contributions, locale } = Astro.props; +const { contributions } = Astro.props; +const locale = getLocaleFromPath(Astro.url.pathname); const t = translate(locale); --- |
