v2: fix language switcher, fix german translations

This commit is contained in:
Benjamin Yule Bädorf 2024-04-11 18:18:14 +02:00
parent 87e4b106e0
commit 887fead703
Signed by untrusted user: b12f
GPG key ID: 729956E1124F8F26
4 changed files with 26 additions and 3 deletions

View file

@ -205,6 +205,12 @@ services:
status: not-applicable status: not-applicable
strings: strings:
visit_service:
en: 'Visit service'
de: 'Zum Dienst'
wiki_help_page:
en: Wiki help page
de: Wikiseite
states: states:
yes: yes:
en: Yes en: Yes

View file

@ -1,4 +1,4 @@
export default ({ otherLang, baseURL }) => <a export default ({ otherLang, baseURL }) => <a
href={otherLang.urlPrefix ? `/${otherLang.urlPrefix }` : baseURL} href={otherLang.urlPrefix ? `/${otherLang.urlPrefix }${baseURL}` : baseURL}
class="ps-homelink ps-homelink_lang" class="ps-homelink ps-homelink_lang"
>{otherLang.slug}</a> >{otherLang.slug}</a>

View file

@ -19,8 +19,8 @@ export default ({ data, language, className = '', }) => {
<h2 className="ps-service--title" id={service.id}>{service.name}</h2> <h2 className="ps-service--title" id={service.id}>{service.name}</h2>
<div className="ps-service--links"> <div className="ps-service--links">
<a href={service.link} target="_blank">Visit service</a> <a href={service.link} target="_blank">{ strings.visit_service[language.slug] }</a>
{service.wiki ? <a href={service.wiki} target="_blank">Wiki help page</a> : null} {service.wiki ? <a href={service.wiki} target="_blank">{ strings.wiki_help_page[language.slug] }</a> : null}
</div> </div>
</header> </header>

17
de/services.yml Normal file
View file

@ -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)