Merge pull request #5 from breucode/master

Implement translation for headings
This commit is contained in:
Inês Almeida 2021-01-15 22:15:37 +00:00 committed by GitHub
commit 559509bc5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 48 additions and 7 deletions

View file

@ -1,5 +1,6 @@
baseURL = "https://example.com/" baseURL = "https://example.com/"
languageCode = "en-us" languageCode = "en-us"
defaultContentLanguage = "en"
theme = "almeida-cv" theme = "almeida-cv"
title = "Example - CV" title = "Example - CV"

20
i18n/de.toml Normal file
View file

@ -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"

20
i18n/en.toml Normal file
View file

@ -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"

View file

@ -1,7 +1,7 @@
{{ if .Site.Data.content.Diplomas }} {{ if .Site.Data.content.Diplomas }}
<div class="sideSection"> <div class="sideSection">
<div class="sideSection__heading"> <div class="sideSection__heading">
<h2 class="sideSection__title">Diplomas</h2> <h2 class="sideSection__title">{{ i18n "diplomas" }}</h2>
</div> </div>
<div class="sideSection__content"> <div class="sideSection__content">
<ul> <ul>

View file

@ -2,7 +2,7 @@
<div id="education" class="section"> <div id="education" class="section">
<div class="section__heading"> <div class="section__heading">
<h2 class="section__title"> <h2 class="section__title">
Education {{ i18n "education" }}
</h2> </h2>
</div> </div>
<div class="section__content"> <div class="section__content">

View file

@ -1,7 +1,7 @@
{{ if .Site.Data.content.Experience }} {{ if .Site.Data.content.Experience }}
<div id="experience" class="section"> <div id="experience" class="section">
<div class="section__heading"> <div class="section__heading">
<h2 class="section__title">Experience</h2> <h2 class="section__title">{{ i18n "experience" }}</h2>
</div> </div>
<div class="section__content"> <div class="section__content">
<div class="experience"> <div class="experience">

View file

@ -1,7 +1,7 @@
{{ if .Site.Data.content.Interests }} {{ if .Site.Data.content.Interests }}
<div class="sideSection"> <div class="sideSection">
<div class="sideSection__heading"> <div class="sideSection__heading">
<h2 class="sideSection__title">Interests</h2> <h2 class="sideSection__title">{{ i18n "interests" }}</h2>
</div> </div>
<div class="sideSection__content"> <div class="sideSection__content">
<ul class="interests"> <ul class="interests">

View file

@ -1,7 +1,7 @@
{{ if .Site.Data.content.Languages }} {{ if .Site.Data.content.Languages }}
<div class="sideSection"> <div class="sideSection">
<div class="sideSection__heading"> <div class="sideSection__heading">
<h2 class="sideSection__title">Languages</h2> <h2 class="sideSection__title">{{ i18n "languages" }}</h2>
</div> </div>
<div class="sideSection__content"> <div class="sideSection__content">
<ul class="language"> <ul class="language">

View file

@ -1,7 +1,7 @@
{{ if .Site.Data.content.Profile }} {{ if .Site.Data.content.Profile }}
<div id="profile" class="section"> <div id="profile" class="section">
<div class="section__heading"> <div class="section__heading">
<h2 class="section__title">Profile</h2> <h2 class="section__title">{{ i18n "profile" }}</h2>
</div> </div>
<div class="section__content"> <div class="section__content">
<p>{{.Site.Data.content.Profile | safeHTML }}</p> <p>{{.Site.Data.content.Profile | safeHTML }}</p>

View file

@ -1,7 +1,7 @@
{{ if .Site.Data.content.Skills }} {{ if .Site.Data.content.Skills }}
<div class="sideSection"> <div class="sideSection">
<div class="sideSection__heading"> <div class="sideSection__heading">
<h2 class="sideSection__title">Skills</h2> <h2 class="sideSection__title">{{ i18n "skills" }}</h2>
</div> </div>
<div class="sideSection__content"> <div class="sideSection__content">
<ul class="skills"> <ul class="skills">