Skip to content

Commit

Permalink
Merge pull request #18 from saloum45/salem
Browse files Browse the repository at this point in the history
j'ai rajouté la langue wolof et j'ai corrigé un la tradution du  navi…
  • Loading branch information
MedouneSGB authored Oct 29, 2023
2 parents f819fe9 + f0db0c8 commit be1d118
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion i18n/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"navigation": {
"home": "Home",
"contibutors": "Contibutors",
"contributors": "Contributors",
"contribute": "Contribute",
"selectLang": {
"placeholder": "Choose a language",
Expand Down
2 changes: 1 addition & 1 deletion i18n/fr.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"navigation": {
"home": "Accueil",
"contibutors": "Contibuteurs",
"contributors": "Contributeurs",
"contribute": "Contribuer",
"selectLang": {
"placeholder": "Choisir une langue",
Expand Down
25 changes: 25 additions & 0 deletions i18n/wolof.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"navigation": {
"home": "yeksil",
"contributors": "Nioussi Djapp",
"contribute": "Djapp si",
"selectLang": {
"placeholder": "Kalama",
"en": "Anglais",
"fr": "Français"
}
},
"content": {
"header": {
"title": "Aksil ak diamme",
"tagline": "Bereub bouy wané diambar yii"
},
"heroes": {
"title_first": "Bénn Deukk",
"title_second": "Ayy diambar you beurri."
}
},
"footer": {
"tagline": "Bereub bouy wané diambar yii."
}
}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
English
</option>
<option value="fr" data-i18n="selectLang.fr">French</option>
<option value="wolof" data-i18n="selectLang.wolof">Wolof</option>
</select>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const translator = new Translator({
detectLanguage: true,
})

translator.fetch(["fr", "en"]).then(() => {
translator.fetch(["fr", "en", "wolof"]).then(() => {
// Calling `translatePageTo()` without any parameters
// will translate to the default language.
translator.translatePageTo();
Expand Down

0 comments on commit be1d118

Please sign in to comment.