From 8802095a8ce3e37dda228726ae192b05dc78b641 Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Mon, 11 Mar 2024 12:32:34 +0100
Subject: [PATCH] i18n

---
 assets/sass/_theme/utils/sidebar.sass   |  1 -
 i18n/en.yml                             |  5 ++++-
 i18n/fr.yml                             | 20 ++++++++++++++++++++
 layouts/partials/projects/projects.html |  2 +-
 4 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/assets/sass/_theme/utils/sidebar.sass b/assets/sass/_theme/utils/sidebar.sass
index fe11c737..f82412c8 100644
--- a/assets/sass/_theme/utils/sidebar.sass
+++ b/assets/sass/_theme/utils/sidebar.sass
@@ -63,7 +63,6 @@
             position: static
             margin-left: 0
 
-
 // Utilisé dans .post-infos, et project-infos
 @mixin section__page-infos
     @include meta
diff --git a/i18n/en.yml b/i18n/en.yml
index 6d6226dd..431275af 100644
--- a/i18n/en.yml
+++ b/i18n/en.yml
@@ -4,7 +4,9 @@ blocks:
   categories:
     title: Catégories
     items:
-      count: "{{ .Count }} articles"
+      count: 
+        one: "1 article"
+        other: "{{ .Count }} articles"
   chapter:
     title: Chapter
   contact:
@@ -52,6 +54,7 @@ blocks:
     play: Play video
 categories:
   no_post: No post in this category
+  no_project: No project in this category
   see_more:
     one: See the post
     other: See the {{ .Count }} posts
diff --git a/i18n/fr.yml b/i18n/fr.yml
index 2310394f..50a84f11 100644
--- a/i18n/fr.yml
+++ b/i18n/fr.yml
@@ -54,6 +54,7 @@ blocks:
     play: Lancer la vidéo
 categories:
   no_post: Aucun article dans cette catégorie
+  no_project: Aucun projet dans cette catégorie
   see_more:
     one: Voir l'article
     other: Voir les {{ .Count }} articles
@@ -231,6 +232,25 @@ posts:
   share: Partager sur
   share_aria: Partager sur “{{ .Title }}” - lien externe
   title: Actualités
+
+projects:
+  author: Auteur·rice
+  category:
+    one: Catégorie
+    other: Catégories
+  date: Date
+  informations: Informations
+  next: Projet suivant
+  next_aria: Projet suivant “{{ .Title }}”
+  previous: Projet précédent
+  previous_aria: Projet précédent “{{ .Title }}”
+  reading_time: Temps de lecture
+  see_all: Voir toutes les projets
+  see_all_in_program: Voir toutes les projets de la formation
+  see_all_in_category: Voir toutes les projets “{{ .Title }}”
+  share: Partager sur
+  share_aria: Partager sur “{{ .Title }}” - lien externe
+  title: Projets
 programs:
   accessibility: Accessibilité
   administrative_information: Informations administratives
diff --git a/layouts/partials/projects/projects.html b/layouts/partials/projects/projects.html
index 2855b74e..bfce05b0 100644
--- a/layouts/partials/projects/projects.html
+++ b/layouts/partials/projects/projects.html
@@ -1,6 +1,6 @@
 <div class="projects projects--{{- site.Params.projects.index.layout -}}">
   {{ if not .Pages }}
-    <p>{{ i18n "projects.no_project" }}</p>
+    <p>{{ i18n "categories.no_project" }}</p>
   {{ end }}
   {{ range .Paginator.Pages }}
     {{ partial "projects/project.html" (dict "project" . )}}
-- 
GitLab