Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #48 from deining/i18n_de
Browse files Browse the repository at this point in the history
Adding German translation
  • Loading branch information
negrel authored Apr 19, 2023
2 parents 8ee05b0 + 21d4be2 commit ba41a4e
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 2 additions & 0 deletions exampleSite/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.hugo_build.lock
resources/
7 changes: 7 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
56 changes: 56 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
@@ -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"
10 changes: 5 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ba41a4e

Please sign in to comment.