diff options
author | InĂªs Almeida <ineesalmeida@gmail.com> | 2021-01-16 01:15:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 01:15:37 +0300 |
commit | 559509bc5ab2aae370a5512669504a27cffa56ad (patch) | |
tree | 49e3486c7d213e5dc0ef84a63a4255936575114d | |
parent | c2570e59b5656e9153b3fa043630145941654104 (diff) | |
parent | eadbc722bb79f764be44bb07be07b0e712303553 (diff) |
Merge pull request #5 from breucode/master
Implement translation for headings
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | i18n/de.toml | 20 | ||||
-rw-r--r-- | i18n/en.toml | 20 | ||||
-rw-r--r-- | layouts/partials/_diplomas.html | 2 | ||||
-rw-r--r-- | layouts/partials/_education.html | 2 | ||||
-rw-r--r-- | layouts/partials/_experience.html | 2 | ||||
-rw-r--r-- | layouts/partials/_interests.html | 2 | ||||
-rw-r--r-- | layouts/partials/_languages.html | 2 | ||||
-rw-r--r-- | layouts/partials/_profile.html | 2 | ||||
-rw-r--r-- | layouts/partials/_skills.html | 2 |
10 files changed, 48 insertions, 7 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fbbfcc4..c71d98e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,5 +1,6 @@ baseURL = "https://example.com/" languageCode = "en-us" +defaultContentLanguage = "en" theme = "almeida-cv" title = "Example - CV" diff --git a/i18n/de.toml b/i18n/de.toml new file mode 100644 index 0000000..9679b5f --- /dev/null +++ b/i18n/de.toml @@ -0,0 +1,20 @@ +[profile] +other = "Profil" + +[experience] +other = "Erfahrung" + +[education] +other = "Bildung" + +[skills] +other = "Skills" + +[languages] +other = "Sprachen" + +[diplomas] +other = "Zertifizierungen" + +[interests] +other = "Interessen" diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..86833ae --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,20 @@ +[profile] +other = "Profile" + +[experience] +other = "Experience" + +[education] +other = "Education" + +[skills] +other = "Skills" + +[languages] +other = "Languages" + +[diplomas] +other = "Diplomas" + +[interests] +other = "Interests" diff --git a/layouts/partials/_diplomas.html b/layouts/partials/_diplomas.html index 1e945fe..15f2f89 100644 --- a/layouts/partials/_diplomas.html +++ b/layouts/partials/_diplomas.html @@ -1,7 +1,7 @@ {{ if .Site.Data.content.Diplomas }} <div class="sideSection"> <div class="sideSection__heading"> - <h2 class="sideSection__title">Diplomas</h2> + <h2 class="sideSection__title">{{ i18n "diplomas" }}</h2> </div> <div class="sideSection__content"> <ul> diff --git a/layouts/partials/_education.html b/layouts/partials/_education.html index 717307a..f5021dd 100644 --- a/layouts/partials/_education.html +++ b/layouts/partials/_education.html @@ -2,7 +2,7 @@ <div id="education" class="section"> <div class="section__heading"> <h2 class="section__title"> - Education + {{ i18n "education" }} </h2> </div> <div class="section__content"> diff --git a/layouts/partials/_experience.html b/layouts/partials/_experience.html index 2217e2b..e801a3b 100644 --- a/layouts/partials/_experience.html +++ b/layouts/partials/_experience.html @@ -1,7 +1,7 @@ {{ if .Site.Data.content.Experience }} <div id="experience" class="section"> <div class="section__heading"> - <h2 class="section__title">Experience</h2> + <h2 class="section__title">{{ i18n "experience" }}</h2> </div> <div class="section__content"> <div class="experience"> diff --git a/layouts/partials/_interests.html b/layouts/partials/_interests.html index 739ed57..cc09bb6 100644 --- a/layouts/partials/_interests.html +++ b/layouts/partials/_interests.html @@ -1,7 +1,7 @@ {{ if .Site.Data.content.Interests }} <div class="sideSection"> <div class="sideSection__heading"> - <h2 class="sideSection__title">Interests</h2> + <h2 class="sideSection__title">{{ i18n "interests" }}</h2> </div> <div class="sideSection__content"> <ul class="interests"> diff --git a/layouts/partials/_languages.html b/layouts/partials/_languages.html index 89efa9e..1ef2c44 100644 --- a/layouts/partials/_languages.html +++ b/layouts/partials/_languages.html @@ -1,7 +1,7 @@ {{ if .Site.Data.content.Languages }} <div class="sideSection"> <div class="sideSection__heading"> - <h2 class="sideSection__title">Languages</h2> + <h2 class="sideSection__title">{{ i18n "languages" }}</h2> </div> <div class="sideSection__content"> <ul class="language"> diff --git a/layouts/partials/_profile.html b/layouts/partials/_profile.html index 65b34aa..d394108 100644 --- a/layouts/partials/_profile.html +++ b/layouts/partials/_profile.html @@ -1,7 +1,7 @@ {{ if .Site.Data.content.Profile }} <div id="profile" class="section"> <div class="section__heading"> - <h2 class="section__title">Profile</h2> + <h2 class="section__title">{{ i18n "profile" }}</h2> </div> <div class="section__content"> <p>{{.Site.Data.content.Profile | safeHTML }}</p> diff --git a/layouts/partials/_skills.html b/layouts/partials/_skills.html index 8cdb62f..676aaf3 100644 --- a/layouts/partials/_skills.html +++ b/layouts/partials/_skills.html @@ -1,7 +1,7 @@ {{ if .Site.Data.content.Skills }} <div class="sideSection"> <div class="sideSection__heading"> - <h2 class="sideSection__title">Skills</h2> + <h2 class="sideSection__title">{{ i18n "skills" }}</h2> </div> <div class="sideSection__content"> <ul class="skills"> |