From e2057c517efeb1c35bcb2ee453f0389eda50f9c9 Mon Sep 17 00:00:00 2001
From: Kevin Kandlbinder <kevin@kevink.dev>
Date: Sun, 7 Nov 2021 00:55:41 +0000
Subject: [PATCH] Update translations

---
 locales/de/translation.json  | 112 ++++++++++++++++++-----------------
 locales/en/translation.json  |  96 +++++++++++++++---------------
 src/templates/blogListing.js |   6 +-
 3 files changed, 109 insertions(+), 105 deletions(-)

diff --git a/locales/de/translation.json b/locales/de/translation.json
index b4d920b..2d3295e 100644
--- a/locales/de/translation.json
+++ b/locales/de/translation.json
@@ -1,35 +1,35 @@
 {
-    "site": {
-        "description": "Hallo, ich bin Kevin Kandlbinder, ein Entwickler und Hobby-Fotograf aus Norddeutschland."
-    },
-    "layout": {
-        "imprint": "Impressum",
-        "datasec": "Datenschutz",
-        "disclaimer": "Disclaimer"
-    },
-    "project": {
-        "title": "Projekt",
-        "plural": "Projekte",
-        "aboutHeader": "Über {{projectName}}",
-        "viewGitHub": "Auf GitHub anschauen",
-        "viewWebsite": "Projekt-Website anschauen",
-        "description": "Das ist woran ich grade arbeite oder woran ich gearbeitet habe.",
-        "view": "Anschauen"
-    },
-    "home": {
-        "title": "Home",
-        "hello": "Hallo, ich bin",
-        "me": "Ich bin",
-        "webDeveloper": "Web Developer",
-        "imageCredit": "Portrait aufgenommen von Jannik Kiel",
-        "myLocation": "Quickborn, Schleswig-Holstein, Deutschland",
-      "explore": "Erkunde",
-      "myProjects": "meine Projekte",
-      "discover": "Entdecke",
-      "mySocials": "meine Accounts",
-      "learn": "Erfahre",
-      "moreAboutMe": "mehr über mich"
-    },
+  "site": {
+    "description": "Hallo, ich bin Kevin Kandlbinder, ein Entwickler und Hobby-Fotograf aus Norddeutschland."
+  },
+  "layout": {
+    "imprint": "Impressum",
+    "datasec": "Datenschutz",
+    "disclaimer": "Disclaimer"
+  },
+  "project": {
+    "title": "Projekt",
+    "plural": "Projekte",
+    "aboutHeader": "Über {{projectName}}",
+    "viewGitHub": "Auf GitHub anschauen",
+    "viewWebsite": "Projekt-Website anschauen",
+    "description": "Das ist woran ich grade arbeite oder woran ich gearbeitet habe.",
+    "view": "Anschauen"
+  },
+  "home": {
+    "title": "Home",
+    "hello": "Hallo, ich bin",
+    "me": "Ich bin",
+    "webDeveloper": "Web Developer",
+    "imageCredit": "Portrait aufgenommen von Jannik Kiel",
+    "myLocation": "Quickborn, Schleswig-Holstein, Deutschland",
+    "explore": "Erkunde",
+    "myProjects": "meine Projekte",
+    "discover": "Entdecke",
+    "mySocials": "meine Accounts",
+    "learn": "Erfahre",
+    "moreAboutMe": "mehr über mich"
+  },
   "about": {
     "title": "Über",
     "donationCatchphrase": "Gefällt dir was du siehst? Spende doch etwas.",
@@ -38,9 +38,9 @@
     "mySkills": "Meine Fähigkeiten"
   },
   "social": {
-      "title": "Soziales",
-      "descriptionWithLink": "Finde mich auf anderen Plattformen oder <1>besuche meine Freunde</1>!",
-      "description": "Finde mich auf anderen Plattformen!"
+    "title": "Soziales",
+    "descriptionWithLink": "Finde mich auf anderen Plattformen oder <1>besuche meine Freunde</1>!",
+    "description": "Finde mich auf anderen Plattformen!"
   },
   "friends": {
     "title": "Freunde",
@@ -58,29 +58,31 @@
   },
   "menu": "Menü",
   "language": {
-      "en": {
-          "name": "Englisch"
-      },
-      "de": {
-          "name": "Deutsch"
-      }
+    "en": {
+      "name": "Englisch"
+    },
+    "de": {
+      "name": "Deutsch"
+    }
   },
   "blog": {
-      "title": "Blog",
-      "readFull": "Ganzen Post lesen »",
-      "meta": "Gepostet am {{date}} von {{author}}",
-      "page": "Seite {{page}}/{{maxPage}}",
-      "previous": "Zurück",
-      "next": "Weiter",
-      "section": {
-          "blog": {
-            "name": "Blog",
-            "description": "Begleite mich in meinem spannendem Leben!"
-          },
-          "scambox": {
-              "name": "Scambox",
-              "description": "Tauche mit mir ein in die Welt der Scams, die ich tagtäglich so bekomme, und lach ein bisschen mit mir!"
-          }
+    "title": "Blog",
+    "readFull": "Ganzen Post lesen »",
+    "meta": "Gepostet am {{date}} von {{author}}",
+    "page": "Seite {{page}}/{{maxPage}}",
+    "previous": "Zurück",
+    "next": "Weiter",
+    "section": {
+      "blog": {
+        "name": "Blog",
+        "description": "Begleite mich in meinem spannendem Leben!"
+      },
+      "scambox": {
+        "name": "Scambox",
+        "description": "Tauche mit mir ein in die Welt der Scams, die ich tagtäglich so bekomme, und lach ein bisschen mit mir!"
       }
+    },
+    "sections": "Rubriken",
+    "posts": "Beiträge"
   }
 }
diff --git a/locales/en/translation.json b/locales/en/translation.json
index 20ef4cf..b0dbb84 100644
--- a/locales/en/translation.json
+++ b/locales/en/translation.json
@@ -1,28 +1,28 @@
 {
-    "site": {
-        "description": "Hello, I am Kevin Kandlbinder, a developer and hobby photographer from northern Germany."
-    },
-    "layout": {
-        "imprint": "Imprint",
-        "datasec": "Data Protection",
-        "disclaimer": "Disclaimer"
-    },
-    "project": {
-        "title": "Project",
-        "plural": "Projects",
-        "aboutHeader": "About {{projectName}}",
-        "viewGitHub": "View on GitHub",
-        "viewWebsite": "View Project-Website",
-        "description": "This is what I am working on or have worked on.",
-        "view": "View"
-    },
+  "site": {
+    "description": "Hello, I am Kevin Kandlbinder, a developer and hobby photographer from northern Germany."
+  },
+  "layout": {
+    "imprint": "Imprint",
+    "datasec": "Data Protection",
+    "disclaimer": "Disclaimer"
+  },
+  "project": {
+    "title": "Project",
+    "plural": "Projects",
+    "aboutHeader": "About {{projectName}}",
+    "viewGitHub": "View on GitHub",
+    "viewWebsite": "View Project-Website",
+    "description": "This is what I am working on or have worked on.",
+    "view": "View"
+  },
   "home": {
-      "title": "Home",
-      "hello": "Hello, I am",
-      "me": "I am",
-      "webDeveloper": "a web developer",
-      "imageCredit": "Portrait taken by Jannik Kiel",
-      "myLocation": "Quickborn, Schleswig-Holstein, Germany",
+    "title": "Home",
+    "hello": "Hello, I am",
+    "me": "I am",
+    "webDeveloper": "a web developer",
+    "imageCredit": "Portrait taken by Jannik Kiel",
+    "myLocation": "Quickborn, Schleswig-Holstein, Germany",
     "explore": "Explore",
     "myProjects": "my projects",
     "discover": "Discover",
@@ -38,9 +38,9 @@
     "mySkills": "My Skills"
   },
   "social": {
-      "title": "Social",
-      "descriptionWithLink": "Find me on other platforms or <1>visit my friends</1>!",
-      "description": "Find me on other platforms!"
+    "title": "Social",
+    "descriptionWithLink": "Find me on other platforms or <1>visit my friends</1>!",
+    "description": "Find me on other platforms!"
   },
   "friends": {
     "title": "Friends",
@@ -58,29 +58,31 @@
   },
   "menu": "Menu",
   "language": {
-      "en": {
-          "name": "English"
-      },
-      "de": {
-          "name": "German"
-      }
+    "en": {
+      "name": "English"
+    },
+    "de": {
+      "name": "German"
+    }
   },
   "blog": {
-      "title": "Blog",
-      "readFull": "Read full post »",
-      "meta": "Posted on {{date}} by {{author}}",
-      "page": "Page {{page}}/{{maxPage}}",
-      "previous": "Previous",
-      "next": "Next",
-      "section": {
-          "blog": {
-            "name": "Blog",
-            "description": "Read all about my exciting life!"
-          },
-          "scambox": {
-              "name": "Scambox",
-              "description": "Take a dive with me into all of the scams I get on the daily, and maybe laugh at them a little!"
-          }
+    "title": "Blog",
+    "readFull": "Read full post »",
+    "meta": "Posted on {{date}} by {{author}}",
+    "page": "Page {{page}}/{{maxPage}}",
+    "previous": "Previous",
+    "next": "Next",
+    "section": {
+      "blog": {
+        "name": "Blog",
+        "description": "Read all about my exciting life!"
+      },
+      "scambox": {
+        "name": "Scambox",
+        "description": "Take a dive with me into all of the scams I get on the daily, and maybe laugh at them a little!"
       }
+    },
+    "sections": "Sections",
+    "posts": "Posts"
   }
 }
diff --git a/src/templates/blogListing.js b/src/templates/blogListing.js
index a6be1b2..d1d43c7 100644
--- a/src/templates/blogListing.js
+++ b/src/templates/blogListing.js
@@ -34,7 +34,7 @@ const BlogListing = ({ data, pageContext }) => {
 
                     {!hasSection && (
                         <>
-                            <h2>Sections</h2>
+                            <h2>{t("blog.sections")}</h2>
 
                             <div className={styles.sectionList}>
                                 <Link
@@ -46,7 +46,7 @@ const BlogListing = ({ data, pageContext }) => {
                                             <StaticImage src="https://source.unsplash.com/gf8e6XvG_3E/300x150"></StaticImage>
                                         </div>
                                         <span className={styles.sectionName}>
-                                            Scambox
+                                            {t("blog.section.scambox.name")}
                                         </span>
                                     </div>
                                 </Link>
@@ -54,7 +54,7 @@ const BlogListing = ({ data, pageContext }) => {
                         </>
                     )}
 
-                    <h2>Posts</h2>
+                    <h2>{t("blog.posts")}</h2>
 
                     <div className={styles.list}>
                         {data.posts.nodes.map((post) => {