From 00b73d10ee7b76a8cfc599890284f38a5c8abb46 Mon Sep 17 00:00:00 2001 From: mkue Date: Tue, 28 Nov 2023 15:56:16 +0100 Subject: [PATCH] tiny adjustments --- shared/locales/de/website-about-us.json | 2 +- .../(website)/about-us/(sections)/100-percent-model.tsx | 3 +-- .../(website)/about-us/(sections)/flow-of-funds.tsx | 2 +- .../[region]/(website)/about-us/(sections)/team.tsx | 8 ++++---- .../finances/[currency]/charts/transparency-charts.tsx | 2 +- .../transparency/finances/[currency]/section-3.tsx | 2 +- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/shared/locales/de/website-about-us.json b/shared/locales/de/website-about-us.json index a0c7bebbd..11bec3226 100644 --- a/shared/locales/de/website-about-us.json +++ b/shared/locales/de/website-about-us.json @@ -44,7 +44,7 @@ "color": "secondary" } ], - "subtitle": "Wir sind der Meinung, dass 100 % der wieder­kehrenden Spenden Menschen in Not zugute kommen sollen. ", + "subtitle": "Wir sind der Meinung, dass 100% der wieder­kehrenden Spenden Menschen in Not zugute kommen sollen.", "paragraphs": [ "Wir haben einen Weg gefunden, dieses Versprechen einzulösen: Unsere Betriebskosten und Finanzierungsaufwendungen werden durch philanthropische Zuschüsse und institutionelle Spenden gedeckt.", "Dank dieser Unterstützung können wir garantieren, dass 100 % der Beiträge unserer individuellen Spender*innen bei den Empfänger:innen ankommt." diff --git a/website/src/app/[lang]/[region]/(website)/about-us/(sections)/100-percent-model.tsx b/website/src/app/[lang]/[region]/(website)/about-us/(sections)/100-percent-model.tsx index dfb2b34e1..dfa8df90f 100644 --- a/website/src/app/[lang]/[region]/(website)/about-us/(sections)/100-percent-model.tsx +++ b/website/src/app/[lang]/[region]/(website)/about-us/(sections)/100-percent-model.tsx @@ -30,9 +30,8 @@ export async function HundredPercentModel({ lang }: { lang: WebsiteLanguage }) { size="2xl" weight="medium" className="hyphens-manual" - lang="de" dangerouslySetInnerHTML={{ __html: translator.t('100-percent-model.subtitle') }} - > + />
{translator.t('100-percent-model.paragraphs').map((text, index) => ( diff --git a/website/src/app/[lang]/[region]/(website)/about-us/(sections)/flow-of-funds.tsx b/website/src/app/[lang]/[region]/(website)/about-us/(sections)/flow-of-funds.tsx index ed5e9d1b4..ed8f0c221 100644 --- a/website/src/app/[lang]/[region]/(website)/about-us/(sections)/flow-of-funds.tsx +++ b/website/src/app/[lang]/[region]/(website)/about-us/(sections)/flow-of-funds.tsx @@ -43,7 +43,7 @@ export async function FlowOfFunds({ lang }: { lang: WebsiteLanguage }) {
-
+
diff --git a/website/src/app/[lang]/[region]/(website)/about-us/(sections)/team.tsx b/website/src/app/[lang]/[region]/(website)/about-us/(sections)/team.tsx index f96d8f0e0..97f825eb5 100644 --- a/website/src/app/[lang]/[region]/(website)/about-us/(sections)/team.tsx +++ b/website/src/app/[lang]/[region]/(website)/about-us/(sections)/team.tsx @@ -115,13 +115,13 @@ export default async function Team({ lang }: { lang: WebsiteLanguage }) { {translator.t('team.header')} -

+ {translator.t<{ text: string; color?: FontColor }[]>('team.title').map((title, index) => ( - + {title.text} ))} -

+
{groups.map((group, index1) => (
@@ -132,7 +132,7 @@ export default async function Team({ lang }: { lang: WebsiteLanguage }) { {translator.t(`team.groups.${group.name}.subtitle`)} -
+
{translator.t(`team.groups.${group.name}.description`)} diff --git a/website/src/app/[lang]/[region]/(website)/transparency/finances/[currency]/charts/transparency-charts.tsx b/website/src/app/[lang]/[region]/(website)/transparency/finances/[currency]/charts/transparency-charts.tsx index 5a1368ad2..aa910fd61 100644 --- a/website/src/app/[lang]/[region]/(website)/transparency/finances/[currency]/charts/transparency-charts.tsx +++ b/website/src/app/[lang]/[region]/(website)/transparency/finances/[currency]/charts/transparency-charts.tsx @@ -20,7 +20,7 @@ export default function TransparencyCharts({ lang, currency, }: ContributionStatsProps) { - const translator = useTranslator(lang, 'website-transparency'); + const translator = useTranslator(lang, 'website-finances'); return (
diff --git a/website/src/app/[lang]/[region]/(website)/transparency/finances/[currency]/section-3.tsx b/website/src/app/[lang]/[region]/(website)/transparency/finances/[currency]/section-3.tsx index 2ef554e76..58038359a 100644 --- a/website/src/app/[lang]/[region]/(website)/transparency/finances/[currency]/section-3.tsx +++ b/website/src/app/[lang]/[region]/(website)/transparency/finances/[currency]/section-3.tsx @@ -6,7 +6,7 @@ import { CountryCard, CountryCardList } from './section-3-cards'; export async function Section3({ params, contributionStats }: SectionProps) { const translator = await Translator.getInstance({ language: params.lang, - namespaces: ['countries', 'website-transparency'], + namespaces: ['countries', 'website-finances'], }); const totalContributionsByCountry = contributionStats.totalContributionsByCountry as { country: string;