From b5c0b720934515e70d47e163125e22eea9a43be0 Mon Sep 17 00:00:00 2001
From: Yassine Doghri <yassine@doghri.fr>
Date: Fri, 15 Apr 2022 12:45:32 +0000
Subject: [PATCH] docs: add French language

---
 docs/.vitepress/config.ts | 56 +++++++++++++++++++++++++++++++++++++--
 docs/src/.i18n-filter     |  1 +
 docs/src/fr/index.md      | 12 ++++-----
 docs/src/nn-NO/index.md   |  2 +-
 docs/src/pt-BR/index.md   |  2 +-
 5 files changed, 63 insertions(+), 10 deletions(-)

diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index d04c07024a..23295bef34 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -47,9 +47,15 @@ export default defineConfig({
       description:
         "Check out the Castopod documentation! Install your own free & open-source podcast host, help make it better by contributing, or simply learn more about Castopod!",
     },
+    "/fr/": {
+      lang: "fr",
+      title: "Documentation Castopod",
+      description:
+        "Castopod est une plateforme d’hébergement gratuite & open-source conçue pour les podcasteurs qui veulent échanger et interagir avec leur public.",
+    },
     "/pt-BR/": {
       lang: "pt-BR",
-      title: "Documentação de Castopod",
+      title: "Documentação Castopod",
       description:
         "Castopod é uma plataforma de hospedagem de código livre & aberto feita para podcasters que querem se envolver e interagir com seu público.",
     },
@@ -72,7 +78,7 @@ export default defineConfig({
       "/": {
         label: "English",
         selectText: "Languages",
-        repoLabel: "Source",
+        repoLabel: "Source code",
         nav: [
           {
             text: "Home",
@@ -91,6 +97,28 @@ export default defineConfig({
           "/": getGuideSidebarEn(),
         },
       },
+      "/fr/": {
+        label: "Français",
+        selectText: "Langues",
+        repoLabel: "Code source",
+        nav: [
+          {
+            text: "Accueil",
+            link: "https://castopod.org/",
+          },
+          {
+            text: "Blog",
+            link: "https://blog.castopod.org/",
+          },
+          {
+            text: "Github",
+            link: "https://github.com/ad-aures/castopod",
+          },
+        ],
+        sidebar: {
+          "/": getGuideSidebarFr(),
+        },
+      },
       "/pt-BR/": {
         label: "Português do Brasil",
         selectText: "Línguas",
@@ -159,6 +187,30 @@ function getGuideSidebarEn() {
   ];
 }
 
+function getGuideSidebarFr() {
+  return [
+    {
+      text: "Introduction",
+      link: "/fr/",
+    },
+    {
+      text: "Commencer",
+      children: [
+        { text: "Installer", link: "/fr/getting-started/install" },
+        { text: "Sécurité", link: "/fr/getting-started/security" },
+        { text: "Mise à jour", link: "/fr/getting-started/update" },
+      ],
+    },
+    {
+      text: "Contributing",
+      children: [
+        { text: "Guide", link: "/fr/contributing/guidelines" },
+        { text: "Dev Setup", link: "/fr/contributing/setup-development" },
+      ],
+    },
+  ];
+}
+
 function getGuideSidebarPtBR() {
   return [
     {
diff --git a/docs/src/.i18n-filter b/docs/src/.i18n-filter
index 752d24409d..6e3dfc3015 100644
--- a/docs/src/.i18n-filter
+++ b/docs/src/.i18n-filter
@@ -2,5 +2,6 @@ public
 contributing
 getting-started
 index.md
+fr
 pt-BR
 nn-NO
diff --git a/docs/src/fr/index.md b/docs/src/fr/index.md
index e9b9c15edf..62b2a662a4 100644
--- a/docs/src/fr/index.md
+++ b/docs/src/fr/index.md
@@ -16,7 +16,7 @@ petite taille.
 ::: info Statut
 
 Castopod est actuellement en **version beta** mais est déjà suffisamment stable
-et est utilisé par des podcasters autour partout dans le monde&nbsp;!
+et est utilisé par des podcasters partout autour du monde&nbsp;!
 
 :::
 
@@ -27,7 +27,7 @@ et est utilisé par des podcasters autour partout dans le monde&nbsp;!
 ## Fonctionnalités
 
 - 🌱 &nbsp;Libre, gratuit & open-source (Licence AGPL v3)
-- 🔐 &nbsp;focalisé sur la souveraineté des données : votre contenu, votre
+- 🔐 &nbsp;Focalisé sur la souveraineté des données : votre contenu, votre
   audience et vos statiistiques vous appartiennent, et à vous seulement
 - 🪄&nbsp;Fonctionnalités de Podcasting 2.0 : GUID, verrouillage, transcriptions,
   financement, chapitres, géo-localisation, intervenants, extraits sonores, …
@@ -60,7 +60,7 @@ et est utilisé par des podcasters autour partout dans le monde&nbsp;!
 - 🔀 &nbsp;Multi-locataire : hébergez autant de podcasts que vous le souhaitez
 - 👥 &nbsp;Multi-utilisateur : ajoutez des contributeurs et définissez leurs
   rôles
-- 🌎 &nbsp;support i18n: traduit en Anglais, Français, Polonais, Allemand &
+- 🌎 &nbsp;Multilingue: traduit en Anglais, Français, Polonais, Allemand &
   Brésilien… et bientôt d'autres à venir !
 
 ## Pourquoi Castopod ?
@@ -88,9 +88,9 @@ Ce projet s'appuie sur la communauté open-source, plus spécifiquement sur le
 
 ## Comparaison avec d'autres solutions
 
-Nous pensons qu'une solution n'est pas adaptée à tous, tout dépend vos besoins.
-Voici donc un comparatif avec d'autres outils qui vous aidera à juger si
-Castopod est fait pour vous.
+Nous pensons qu'une solution n'est pas forcément adaptée à tous, tout dépend vos
+besoins. Voici donc un comparatif avec d'autres outils qui vous aidera à juger
+si Castopod est fait pour vous.
 
 ### Castopod vs Wordpress
 
diff --git a/docs/src/nn-NO/index.md b/docs/src/nn-NO/index.md
index 8e16b9e07b..a628b965ba 100644
--- a/docs/src/nn-NO/index.md
+++ b/docs/src/nn-NO/index.md
@@ -22,7 +22,7 @@ over heile verda&nbsp;bruker&nbsp;det!
 :::
 
 <div class="flex items-center">
-  <a href="/getting-started/install" class="inline-flex items-center px-4 py-2 mx-auto font-semibold text-center text-white rounded-full shadow gap-x-1 bg-pine-500 hover:no-underline hover:bg-pine-600">Installer<svg viewBox="0 0 24 24" width="1em" height="1em" class="text-xl text-pine-200"><path fill="currentColor" d="m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"></path></svg></a>
+  <a href="/nn-NO/getting-started/install" class="inline-flex items-center px-4 py-2 mx-auto font-semibold text-center text-white rounded-full shadow gap-x-1 bg-pine-500 hover:no-underline hover:bg-pine-600">Installer<svg viewBox="0 0 24 24" width="1em" height="1em" class="text-xl text-pine-200"><path fill="currentColor" d="m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"></path></svg></a>
 </div>
 
 ## Funksjonar
diff --git a/docs/src/pt-BR/index.md b/docs/src/pt-BR/index.md
index a3768236e2..74576aa1f5 100644
--- a/docs/src/pt-BR/index.md
+++ b/docs/src/pt-BR/index.md
@@ -21,7 +21,7 @@ podcasters em todo o mundo!
 :::
 
 <div class="flex items-center">
-  <a href="/getting-started/install" class="inline-flex items-center px-4 py-2 mx-auto font-semibold text-center text-white rounded-full shadow gap-x-1 bg-pine-500 hover:no-underline hover:bg-pine-600">Instalar<svg viewBox="0 0 24 24" width="1em" height="1em" class="text-xl text-pine-200"><path fill="currentColor" d="m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"></path></svg></a>
+  <a href="/pt-BR/getting-started/install" class="inline-flex items-center px-4 py-2 mx-auto font-semibold text-center text-white rounded-full shadow gap-x-1 bg-pine-500 hover:no-underline hover:bg-pine-600">Instalar<svg viewBox="0 0 24 24" width="1em" height="1em" class="text-xl text-pine-200"><path fill="currentColor" d="m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"></path></svg></a>
 </div>
 
 ## Funcionalidades
-- 
GitLab