Skip to content

Enable multi-languages and translate the content to French #886

Open
@julien-deramond

Description

@julien-deramond

Description

This goal of this issue is pretty straightforward:

  1. Put in place the multi-languages system with the French language
  2. Translate the content to French

Some details

We must be sure that Starlight Blog allows to translate the articles to another language first.

Then, this kind of modification can be applied to the project (that was tested during #788)

diff --git a/astro.config.mjs b/astro.config.mjs
index 121daeb..f6e2a5d 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -70,10 +70,6 @@ export default defineConfig({
           label: "English",
           lang: "en",
         },
-        fr: {
-          label: "Français",
-          lang: "fr",
-        },
       },
       sidebar: [
         {
@@ -86,9 +82,6 @@ export default defineConfig({
             {
               label: "What Is Open Source?",
               collapsed: false,
-              translations: {
-                fr: "Qu'est-ce que l'open source ?",
-              },
               items: [
                 {
                   label: "Introduction",
@@ -120,9 +113,6 @@ export default defineConfig({
             {
               label: "Getting Started",
               collapsed: true,
-              translations: {
-                fr: "Commencer",
-              },
               items: [
                 {
                   label: "Introduction",
@@ -139,9 +129,6 @@ export default defineConfig({
             {
               label: "Contributing",
               collapsed: true,
-              translations: {
-                fr: "Contribuer",
-              },
               items: [
                 {
                   label: "Introduction",
@@ -167,9 +154,6 @@ export default defineConfig({
             {
               label: "Creating",
               collapsed: true,
-              translations: {
-                fr: "Créer",
-              },
               items: [
                 {
 									label: "Introduction",
@@ -202,9 +186,6 @@ export default defineConfig({
             {
               label: "Maintaining",
               collapsed: true,
-              translations: {
-                fr: "Maintenir",
-              },
               items: [
                 {
                   label: "Introduction",
@@ -233,9 +214,6 @@ export default defineConfig({
             {
               label: "Promoting",
               collapsed: true,
-              translations: {
-                fr: "Promouvoir",
-              },
               items: [
                 {
                   label: "Introduction",
@@ -255,9 +233,6 @@ export default defineConfig({
             {
               label: "Financing",
               collapsed: true,
-              translations: {
-                fr: "Financer",
-              },
               items: [
                 {
                   label: "Introduction",
diff --git a/src/content/docs/fr/guide/index.mdx b/src/content/docs/fr/guide/index.mdx
deleted file mode 100644
index a3c6318..0000000
--- a/src/content/docs/fr/guide/index.mdx
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: Guide
----
-
-Guide
\ No newline at end of file
diff --git a/src/content/docs/fr/guide/what-is-open-source/index.mdx b/src/content/docs/fr/guide/what-is-open-source/index.mdx
deleted file mode 100644
index 87ff69e..0000000
--- a/src/content/docs/fr/guide/what-is-open-source/index.mdx
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: What Is Open Source?
----
-
-Guide
\ No newline at end of file
diff --git a/src/content/docs/fr/index.mdx b/src/content/docs/fr/index.mdx
deleted file mode 100644
index 9e604a8..0000000
--- a/src/content/docs/fr/index.mdx
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: Bienvenue sur Open {re}Source
-description: Rejoignez l'open source, apprenez à créer, gérer et contribuer à des projets avec Open {re}Source. Faites la différence aujourd'hui en partageant et en collaborant.
-template: splash
-hero:
-  tagline: "<span style='font-weight: semi-bold; font-size: var(--sl-text-2xl)'>Votre plateforme pour partager et découvrir le monde de l'open source.</span><br><span style='color: var(--sl-color-gray-4)'>Comprenez son fonctionnement, et apprenez à créer, maintenir et contribuer à des projets open source.<br>Rejoignez la communauté open source aujourd'hui et faites la différence.</span>"
-  actions:
-    - text: Suivre le guide
-      link: /guide/
-      icon: right-arrow
-      variant: primary
-    - text: Consulter les articles
-      link: /articles
-      icon: external
----
diff --git a/src/content/docs/fr/resources/books.md b/src/content/docs/fr/resources/books.md
deleted file mode 100644
index 245196d..0000000
--- a/src/content/docs/fr/resources/books.md
+++ /dev/null
@@ -1,9 +0,0 @@
----
-title: Livres
-description: Trouvez des livres liés à l'open source.
----
-Liste de livres recommandés liés à l'open source.
-
-- [Producing Open-Source Software](https://producingoss.com/) par Karl Fogel
-- [Uncurled](https://un.curl.dev) par Daniel Stenberg
-- [Working in Public: The Making and Maintenance of Open-Source Software](https://www.amazon.com/Working-Public-Making-Maintenance-Software/dp/0578675862) par Nadia Eghbal

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureSomething can be improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions