From 5ff92ea1812d25bc382475c091567741ccfebdbf Mon Sep 17 00:00:00 2001 From: Vezpi Date: Wed, 21 May 2025 21:36:25 +0000 Subject: [PATCH] Add french language config --- hugo.yaml | 18 +++++++++++-- i18n/en.yaml | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ i18n/fr.yaml | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 161 insertions(+), 2 deletions(-) create mode 100644 i18n/en.yaml create mode 100644 i18n/fr.yaml diff --git a/hugo.yaml b/hugo.yaml index a627232..8b0304c 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,7 +1,22 @@ baseURL: "https://blog.vezpi.com/" -languageCode: "en-us" title: "Vezpi Lab" theme: "stack" +languageCode: "en-us" +DefaultContentLanguage: "en" + +languages: + en: + languageName: English + weight: 1 + params: + sidebar: + subtitle: "Homelab & Automation" + fr: + languageName: Français + weight: 2 + params: + sidebar: + subtitle: "Homelab & Automatisation" frontmatter: format: "yaml" @@ -11,7 +26,6 @@ params: favicon: "/favicon-32x32.png" sidebar: - subtitle: "Homelab & Automation" avatar: enabled: true src: avatar.jpg diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..72c6fe0 --- /dev/null +++ b/i18n/en.yaml @@ -0,0 +1,73 @@ +toggleMenu: + other: Toggle Menu + +darkMode: + other: Dark Mode + +list: + page: + one: "{{ .Count }} page" + other: "{{ .Count }} pages" + + section: + other: Section + + subsection: + one: Subsection + other: Subsections + +article: + back: + other: Back + + tableOfContents: + other: Table of contents + + relatedContent: + other: Related content + + lastUpdatedOn: + other: Last updated on + + readingTime: + one: "{{ .Count }} minute read" + other: "{{ .Count }} minute read" + +notFound: + title: + other: Not Found + + subtitle: + other: This page does not exist + +widget: + archives: + title: + other: Archives + + more: + other: More + + tagCloud: + title: + other: Tags + categoriesCloud: + title: + other: Categories + +search: + title: + other: Search + + placeholder: + other: Type something... + + resultTitle: + other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)" + +footer: + builtWith: + other: Built with {{ .Generator }} + + designedBy: + other: Theme {{ .Theme }} designed by {{ .DesignedBy }} \ No newline at end of file diff --git a/i18n/fr.yaml b/i18n/fr.yaml new file mode 100644 index 0000000..418d678 --- /dev/null +++ b/i18n/fr.yaml @@ -0,0 +1,72 @@ +toggleMenu: + other: Afficher le menu + +darkMode: + other: Mode sombre + +list: + page: + one: "{{ .Count }} page" + other: "{{ .Count }} pages" + + section: + other: Section + + subsection: + one: Sous-section + other: Sous-sections + +article: + back: + other: Retour + + tableOfContents: + other: Table des matières + + relatedContent: + other: Contenus liés + + lastUpdatedOn: + other: Dernière mise à jour le + + readingTime: + one: "{{ .Count }} minute de lecture" + other: "{{ .Count }} minutes de lecture" + +notFound: + title: + other: Page non trouvée + subtitle: + other: Cette page n'existe pas. + +widget: + archives: + title: + other: Archives + + more: + other: Autres + + tagCloud: + title: + other: Mots clés + categoriesCloud: + title: + other: Catégories + +search: + title: + other: Rechercher + + placeholder: + other: Cherchez un article, une publication, etc. + + resultTitle: + other: "#PAGES_COUNT pages (#TIME_SECONDS secondes)" + +footer: + builtWith: + other: Généré avec {{ .Generator }} + + designedBy: + other: Thème {{ .Theme }} conçu par {{ .DesignedBy }} \ No newline at end of file