From 4e80a7e6dea35196478f31ed3925c70dcac17892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Fri, 12 Apr 2024 21:09:04 +0200 Subject: [PATCH] v2: Fix german translations for hakken page --- _includes/HakkenDates.tsx | 6 +++--- _includes/Langlink.tsx | 2 +- _includes/layouts/default.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_includes/HakkenDates.tsx b/_includes/HakkenDates.tsx index 16b866e..fb38d2a 100644 --- a/_includes/HakkenDates.tsx +++ b/_includes/HakkenDates.tsx @@ -43,13 +43,13 @@ const getStartAndEnd = (date) => { } }; -export default ({ data, lang, className = '', }) => { +export default ({ data, language, className = '', }) => { const strings = data.strings; const dates = data.dates; - const t = (o) => o?.[lang] || ''; + const t = (o) => o?.[language.slug] || ''; return

{t(strings.comingDates)}

diff --git a/_includes/Langlink.tsx b/_includes/Langlink.tsx index b3d4f35..0918808 100644 --- a/_includes/Langlink.tsx +++ b/_includes/Langlink.tsx @@ -1,4 +1,4 @@ export default ({ otherLang, baseURL }) => {otherLang.slug} diff --git a/_includes/layouts/default.tsx b/_includes/layouts/default.tsx index c35cdaa..bf79fc9 100644 --- a/_includes/layouts/default.tsx +++ b/_includes/layouts/default.tsx @@ -45,8 +45,8 @@ export default ({
- {showServices ? : null} - {showHakkenDates ? : null} + {showServices ? : null} + {showHakkenDates ? : null}