From 887fead703a984f4425a3c5d3d2fd3434edfa251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Thu, 11 Apr 2024 18:18:14 +0200 Subject: [PATCH] v2: fix language switcher, fix german translations --- _data/services.yml | 6 ++++++ _includes/Langlink.tsx | 2 +- _includes/Services.tsx | 4 ++-- de/services.yml | 17 +++++++++++++++++ 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 de/services.yml diff --git a/_data/services.yml b/_data/services.yml index 24b02a0..de59a62 100644 --- a/_data/services.yml +++ b/_data/services.yml @@ -205,6 +205,12 @@ services: status: not-applicable strings: + visit_service: + en: 'Visit service' + de: 'Zum Dienst' + wiki_help_page: + en: Wiki help page + de: Wikiseite states: yes: en: Yes diff --git a/_includes/Langlink.tsx b/_includes/Langlink.tsx index 5e88e6d..b3d4f35 100644 --- a/_includes/Langlink.tsx +++ b/_includes/Langlink.tsx @@ -1,4 +1,4 @@ export default ({ otherLang, baseURL }) => {otherLang.slug} diff --git a/_includes/Services.tsx b/_includes/Services.tsx index 6960a29..cd4d766 100644 --- a/_includes/Services.tsx +++ b/_includes/Services.tsx @@ -19,8 +19,8 @@ export default ({ data, language, className = '', }) => {

{service.name}

- Visit service - {service.wiki ? Wiki help page : null} + { strings.visit_service[language.slug] } + {service.wiki ? { strings.wiki_help_page[language.slug] } : null}
diff --git a/de/services.yml b/de/services.yml new file mode 100644 index 0000000..bc5abec --- /dev/null +++ b/de/services.yml @@ -0,0 +1,17 @@ +layout: layouts/default.tsx + +title: Unsere Dienste +showServices: true + +content: | + # Unsere Dienste + + Diese Seite gibt einen Überblick über die Dienste, die wir hosten. Wir geben einige Informationen über den Support-Status und den Datenschutz für jeden Dienst. + + * [Nextcloud](#nextcloud) + * [Mastodon](#mastodon) + * [Matrix](#matrix) + * [Forgejo / git](#forgejo) + * [Mailman](#mailman) + * [Wiki](#wiki) + * [Searx](#searx)