Skip to content

Commit

Permalink
fix: adding and updating French translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jobara committed Sep 27, 2021
1 parent 5ad0f8a commit a7b1093
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/_data/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"skipLink": "Skip to Content",
"breadcrumb": "Breadcrumb",
"home": "Home",
"contents": "contents",
"edit": "Edit this Page on GitHub",
"footer": {
"createdBy": "Created by the",
Expand All @@ -23,9 +24,10 @@
"insights": "perspectives",
"practices": "pratiques",
"tools": "outils",
"skipLink": "Accéder au contenu",
"breadcrumb": "Breadcrumb",
"home": "Home",
"skipLink": "Accès direct au contenu",
"breadcrumb": "Fil d'Ariane",
"home": "Accueil",
"contents": "sommaire",
"edit": "modifier cette page sur GitHub",
"footer": {
"createdBy": "Créé par la",
Expand Down
8 changes: 6 additions & 2 deletions src/_includes/layouts/category.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
<header>
<nav class="idg-breadcrumb" aria-label="{% translate "breadcrumb", lang %}">
<ul>
<li><a href="/{% if not (config.defaultLanguage === lang) %}{{ config.languages[lang].slug }}{% endif %}">Home</a></li>
<li>
<a href="/{% if not (config.defaultLanguage === lang) %}{{ config.languages[lang].slug }}{% endif %}">
{% translate "home", lang %}
</a>
</li>
{% for page in navPages %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
Expand All @@ -27,7 +31,7 @@

{% if not navPages.length %}
{% set childPages = collections[category + "_" + lang] | eleventyNavigation(eleventyNavigation.key) %}
<nav aria-label="{{ eleventyNavigation.key }} contents">
<nav aria-label="{{ eleventyNavigation.key }} {% translate "contents", lang %}">
<ul>
{# Output page links in alphabetical order #}
{% for page in childPages |sort(false, true, "title") %}
Expand Down

0 comments on commit a7b1093

Please sign in to comment.