From b061b1b6a229e042a2a0c08e5a4d8ed016f46a1e Mon Sep 17 00:00:00 2001
From: Mats Fangohr <83273529+MatsFangohr@users.noreply.github.com>
Date: Mon, 05 Feb 2024 14:59:58 +0000
Subject: [PATCH] feat(i18n): German translation (#808)
---
quartz/i18n/locales/de-DE.ts | 65 ++++++++++++++++++++++++++++++++
quartz/i18n/index.ts | 2 +
2 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts
index 47645c5..6ae2a16 100644
--- a/quartz/i18n/index.ts
+++ b/quartz/i18n/index.ts
@@ -1,10 +1,12 @@
import { Translation } from "./locales/definition"
import en from "./locales/en-US"
import fr from "./locales/fr-FR"
+import de from "./locales/de-DE"
export const TRANSLATIONS = {
"en-US": en,
"fr-FR": fr,
+ "de-DE": de,
} as const
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale]
diff --git a/quartz/i18n/locales/de-DE.ts b/quartz/i18n/locales/de-DE.ts
new file mode 100644
index 0000000..c6531be
--- /dev/null
+++ b/quartz/i18n/locales/de-DE.ts
@@ -0,0 +1,65 @@
+import { Translation } from "./definition"
+
+export default {
+ propertyDefaults: {
+ title: "Unbenannt",
+ description: "Keine Beschreibung angegeben",
+ },
+ components: {
+ backlinks: {
+ title: "Backlinks",
+ noBacklinksFound: "Keine Backlinks gefunden",
+ },
+ themeToggle: {
+ lightMode: "Light Mode",
+ darkMode: "Dark Mode",
+ },
+ explorer: {
+ title: "Explorer",
+ },
+ footer: {
+ createdWith: "Erstellt mit",
+ },
+ graph: {
+ title: "Graphansicht",
+ },
+ recentNotes: {
+ title: "Zuletzt bearbeitete Seiten",
+ seeRemainingMore: ({ remaining }) => `${remaining} weitere ansehen →`,
+ },
+ transcludes: {
+ transcludeOf: ({ targetSlug }) => `Transklusion von ${targetSlug}`,
+ linkToOriginal: "Link zum Original",
+ },
+ search: {
+ title: "Suche",
+ searchBarPlaceholder: "Suche nach etwas",
+ },
+ tableOfContents: {
+ title: "Inhaltsverzeichnis",
+ },
+ },
+ pages: {
+ rss: {
+ recentNotes: "Zuletzt bearbeitete Seiten",
+ lastFewNotes: ({ count }) => `Letzte ${count} Seiten`,
+ },
+ error: {
+ title: "Nicht gefunden",
+ notFound: "Diese Seite ist entweder nicht öffentlich oder existiert nicht.",
+ },
+ folderContent: {
+ folder: "Ordner",
+ itemsUnderFolder: ({ count }) =>
+ count === 1 ? "1 Datei in diesem Ordner" : `${count} Dateien in diesem Ordner.`,
+ },
+ tagContent: {
+ tag: "Tag",
+ tagIndex: "Tag-Übersicht",
+ itemsUnderTag: ({ count }) =>
+ count === 1 ? "1 Datei mit diesem Tag" : `${count} Dateien mit diesem Tag.`,
+ showingFirst: ({ count }) => `Die ersten ${count} Tags werden angezeigt.`,
+ totalTags: ({ count }) => `${count} Tags insgesamt.`,
+ },
+ },
+} as const satisfies Translation
--
Gitblit v1.10.0