Jelajahi Sumber

German Translation (#97)

Lukas Herzog 4 tahun lalu
induk
melakukan
f9a3d3a49e
5 mengubah file dengan 43 tambahan dan 1 penghapusan
  1. 3 0
      exampleSite/config.yaml
  2. 33 0
      i18n/de.toml
  3. 3 0
      i18n/en.toml
  4. 3 0
      i18n/fr.toml
  5. 1 1
      layouts/partials/sections/about.html

+ 3 - 0
exampleSite/config.yaml

@@ -15,6 +15,9 @@ languages:
   bn:
     languageName: বাংলা
     weight: 3
+  de: 
+    languageName: Deutsch
+    weight: 4
 
 # Force a locale to be use, really useful to develop the application ! Should be commented in production, the "weight" should rocks.
 # DefaultContentLanguage: fr

+ 33 - 0
i18n/de.toml

@@ -0,0 +1,33 @@
+# More documentation here: https://github.com/nicksnyder/go-i18n
+[home]
+other = "Home"
+
+[posts]
+other = "Beiträge"
+
+[at]
+other = "bei"
+
+[resume]
+other = "Mein Lebenslauf"
+
+[navigation]
+other = "Navigation"
+
+[contact_me]
+other = "Kontakt aufnehmen"
+
+[newsletter_text]
+other = "Mit dem Newsletter auf dem neuesten Stand bleiben"
+
+[newsletter_input_placeholder]
+other = "E-Mail-Adresse eingeben"
+
+[newsletter_warning]
+other = "Wir werden Ihre E-Mail-Adresse nicht an Dritte weitergeben."
+
+[submit]
+other = "Absenden"
+
+[hugoAttributionText]
+other = "Powered by"

+ 3 - 0
i18n/en.toml

@@ -5,6 +5,9 @@ other = "Home"
 [posts]
 other = "Posts"
 
+[at]
+other = "at"
+
 [resume]
 other = "My resume"
 

+ 3 - 0
i18n/fr.toml

@@ -5,6 +5,9 @@ other = "Accueil"
 [posts]
 other = "Des postes"
 
+[at]
+other = "chez"
+
 [resume]
 other = "Mon Curriculum vitæ"
 

+ 1 - 1
layouts/partials/sections/about.html

@@ -12,7 +12,7 @@
       <h5 class="p-1">
         {{ .designation }}
         {{ if .company }}
-          at <a href="{{ .company.url }}">{{ .company.name }}</a>
+        {{ i18n "at"}} <a href="{{ .company.url }}">{{ .company.name }}</a>
         {{ end }}
       </h5>
       {{ end }}