From 21d4be2fc054ef39cae94429c36df626edd499c7 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 16 Apr 2023 21:31:37 +0200 Subject: [PATCH] Adding German translation Bump hugo to latest version 0.111.3 --- README.md | 2 +- exampleSite/.gitignore | 2 ++ exampleSite/config.toml | 7 ++++++ i18n/de.toml | 56 +++++++++++++++++++++++++++++++++++++++++ netlify.toml | 10 ++++---- 5 files changed, 71 insertions(+), 6 deletions(-) create mode 100644 exampleSite/.gitignore create mode 100644 i18n/de.toml diff --git a/README.md b/README.md index 930efc7..d0f80de 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ hugo server Your website is running :smile:, you can start editing content files. ### Multilingual -Pico currently ships with support for 4 languages (fr, en, it, es). Contributions for other language translations are welcome. +Pico currently ships with support for 5 languages (fr, en, it, es, de). Contributions for other language translations are welcome. To create a new language translation, add the .toml file to the i18n/ folder. See the existing files for the necessary fields. See the [hugo documentation](https://gohugo.io/content-management/multilingual/) for more details. diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore new file mode 100644 index 0000000..176fad1 --- /dev/null +++ b/exampleSite/.gitignore @@ -0,0 +1,2 @@ +.hugo_build.lock +resources/ \ No newline at end of file diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7725f10..c276e6c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -133,3 +133,10 @@ weight = 2 # languageCode = 'es' # languageName = 'Español' # weight = 4 + +# Uncomment the following lines to add a German translation. +# [languages.de] +# contentDir = 'content/de' +# languageCode = 'de' +# languageName = 'Deutsch' +# weight = 5 diff --git a/i18n/de.toml b/i18n/de.toml new file mode 100644 index 0000000..1a4c525 --- /dev/null +++ b/i18n/de.toml @@ -0,0 +1,56 @@ +[tagged_in] +other = "Eingetragen in" + +[other_tags] +other = "Andere Tags" + +[read_more] +other = "Mehr lesen" + +[name] +other = "Name" + +[your_message] +other = "Ihre Nachricht" + +[cancel] +other = "Abbrechen" + +[submit] +other = "Absenden" + +[previous] +other = "Vorherige" + +[next] +other = "Nächste" + +[back] +other = "Zurück" + +[contact] +other = "Kontakt" + +[contact_email] +other = "Kontakt via E-Mail" + +[latest_post] +other = "Letzter Beitrag" + +[reading_time] +other = "{{ .ReadingTime }} min read" + +[home] +other = "Startseite" + +[about] +other = "Über" + +[blog] +other = "Blog" + +[present] +other = "Aktuell" + +[required_fields] +other = "Benötigte Felder" diff --git a/netlify.toml b/netlify.toml index 0cdc570..66eb79f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,27 +5,27 @@ publish = "exampleSite/public/" [context.production.environment] HUGO_ENABLEGITINFO = "true" HUGO_ENV = "production" -HUGO_VERSION = "0.79.0" -NODE_VERSION = "v12.19.0" +HUGO_VERSION = "0.111.3" +NODE_VERSION = "v18.16.0" [context.split1] command = "hugo --gc --enableGitInfo" [context.split1.environment] HUGO_ENV = "production" -HUGO_VERSION = "0.73.0" +HUGO_VERSION = "0.111.3" [context.deploy-preview] command = "hugo --gc --buildFuture -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] -HUGO_VERSION = "0.73.0" +HUGO_VERSION = "0.111.3" [context.branch-deploy] command = "hugo --gc -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.73.0" +HUGO_VERSION = "0.111.3" [context.next.environment] HUGO_ENABLEGITINFO = "true"