feat: version anglaise du site (i18n) #3

Merged
cedric merged 6 commits from feat/i18n-anglais into master 2026-07-06 04:25:26 +00:00
Showing only changes of commit c0af3ebc2e - Show all commits
+6
View File
@@ -1,4 +1,10 @@
module.exports = function(eleventyConfig) {
// Locale-aware content: `t` resolves to the content bundle for the page's locale (fr by default)
eleventyConfig.addGlobalData("eleventyComputed", {
locale: (data) => data.locale || "fr",
t: (data) => data.i18n[data.locale || "fr"]
});
// Copy assets folders to output
eleventyConfig.addPassthroughCopy("src/assets");