diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index ba2641e..fb41993 100644 --- a/exampleSite/config.yaml +++ b/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 diff --git a/i18n/de.toml b/i18n/de.toml new file mode 100644 index 0000000..779e415 --- /dev/null +++ b/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" diff --git a/i18n/en.toml b/i18n/en.toml index 6a5be72..a768334 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -5,6 +5,9 @@ other = "Home" [posts] other = "Posts" +[at] +other = "at" + [resume] other = "My resume" diff --git a/i18n/fr.toml b/i18n/fr.toml index 7067bdd..0640574 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -5,6 +5,9 @@ other = "Accueil" [posts] other = "Des postes" +[at] +other = "chez" + [resume] other = "Mon Curriculum vitæ" diff --git a/layouts/partials/sections/about.html b/layouts/partials/sections/about.html index ea00d6b..91ec060 100644 --- a/layouts/partials/sections/about.html +++ b/layouts/partials/sections/about.html @@ -12,7 +12,7 @@
{{ .designation }} {{ if .company }} - at {{ .company.name }} + {{ i18n "at"}} {{ .company.name }} {{ end }}
{{ end }} diff --git a/package-lock.json b/package-lock.json index 66d57f6..8b01d1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -149,9 +149,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001147", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001147.tgz", - "integrity": "sha512-CPyN875geYk46eIqPl5jlmotCr5YZC2KxIVfb4z0FrNfLxPM+MyodWD2irJGDG8vUUE1fmg3De9vt8uaC6Nf6w==", + "version": "1.0.30001148", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001148.tgz", + "integrity": "sha512-E66qcd0KMKZHNJQt9hiLZGE3J4zuTqE1OnU53miEVtylFbwOEmeA5OsRu90noZful+XGSQOni1aT2tiqu/9yYw==", "dev": true }, "chalk": { @@ -177,9 +177,9 @@ } }, "chokidar": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.2.tgz", - "integrity": "sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.3.tgz", + "integrity": "sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ==", "dev": true, "requires": { "anymatch": "~3.1.1", @@ -189,7 +189,7 @@ "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", - "readdirp": "~3.4.0" + "readdirp": "~3.5.0" } }, "cliui": { @@ -279,9 +279,9 @@ } }, "escalade": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.0.tgz", - "integrity": "sha512-mAk+hPSO8fLDkhV7V0dXazH5pDc6MrjBTPyD3VeKzxnVFjH1MIxbCdqGZB9O8+EwWakZs3ZCbDS4IpRt79V1ig==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true }, "escape-string-regexp": { @@ -760,9 +760,9 @@ } }, "readdirp": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz", - "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", + "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", "dev": true, "requires": { "picomatch": "^2.2.1"