summaryrefslogtreecommitdiff
path: root/src/components/LallansIssueContributions.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/LallansIssueContributions.astro
parent71eac2d383c9918645e99b6b845fb8f4faecf346 (diff)
Determines current locale with lib function
Diffstat (limited to 'src/components/LallansIssueContributions.astro')
-rw-r--r--src/components/LallansIssueContributions.astro6
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);
---