1
0
Fork 0
mirror of https://github.com/TheThomaas/my-online-cookbook.git synced 2026-01-09 19:41:38 +00:00

Translate website to french

This commit is contained in:
TheThomaas 2023-07-07 20:17:08 +02:00
parent 5c6d3dd533
commit 5294bab392
12 changed files with 46 additions and 35 deletions

View file

@ -11,6 +11,7 @@ module.exports = config => {
config.addPassthroughCopy('src/img');
config.addPassthroughCopy('src/fonts');
config.addPassthroughCopy('src/admin');
config.addPassthroughCopy({"src/_includes/js/" : "/js"});
/* Collections */

View file

@ -1,15 +1,15 @@
{
"items": [
{
"text": "Home",
"text": "Accueil",
"url": "/"
},
{
"text": "All recipes",
"text": "Recettes",
"url": "/recipes/"
},
{
"text": "About",
"text": "À propos",
"url": "/about/"
}
]

View file

@ -1,12 +1,12 @@
{
"name": "My Online Cookbook",
"metaDescription": "The online cookbook of John Doe",
"author": "John Doe",
"primaryColor": "#ffdb70",
"secondaryColor": "#32816e",
"searchLabel": "Find recipes by name, tag or ingredients",
"searchContainsLabel": "Contains",
"servingsLabel": "servings",
"ingredientsLabel": "Ingredients",
"name": "Le livre de cuisine de Thomas",
"metaDescription": "Toutes mes recettes de cuisine",
"author": "Thomas",
"primaryColor": "#7079ff",
"secondaryColor": "#814c32",
"searchLabel": "Chercher des recettes par nom, tag ou ingrédients",
"searchContainsLabel": "Contient",
"servingsLabel": "personnes",
"ingredientsLabel": "Ingrédients",
"baseURL": "https://myonlinecookbook.netlify.app"
}

8
src/_includes/js/alpine.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -24,7 +24,8 @@
{% include "css/main.css" %}
</style>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.2/dist/alpine.min.js" defer></script>
<!-- <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.2/dist/alpine.min.js" defer></script> -->
<script src="/js/alpine.min.js" defer></script>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js" defer></script>
</head>
<body class="{{bodyClass}}">

View file

@ -1,8 +1,9 @@
---
layout: layouts/base.njk
title: About
title: A propos
bodyClass: u-free-text
---
## Todo
![A picture of a black pug wearing a pilot jacket](/img/about.jpg)
\
\

View file

@ -1,9 +1,9 @@
---
layout: layouts/home.njk
title: This cookbook belongs to
title: Ce cookbook appartient à
authorInTitle: true
metaTitle: Home
highlightedTag: Favourite ⭐
highlightedTitle: Some of my favourite recipes
highlightedLinkText: All my favourite recipes
metaTitle: Accueil
highlightedTag: Préférée ⭐
highlightedTitle: Quelques unes de mes recettes préférées
highlightedLinkText: Toutes mes recettes préférées
---

View file

@ -1,4 +1,4 @@
---
layout: layouts/recipes-list.njk
title: All recipes
title: Toutes les recettes
---

View file

@ -1,10 +1,10 @@
---
title: Coconut lentil soup
title: Soupe de lentille à la noix de coco
image: /img/recipes/coconut-lentil-soup.jpg
tags:
- Soup 🥣
- Vegetarian 🌿
- Vegan 🌱
- Soupe 🥣
- Végétarien 🌿
- Vegan 🌱
sourceLabel: Bon Appétit
sourceURL: https://www.bonappetit.com/recipe/vegan-coconut-lentil-soup
servings: 4

View file

@ -1,10 +1,10 @@
---
title: Courgette & lemon risotto
title: Risotto courgette & citron
image: /img/recipes/courgette-lemon-risotto.jpg
tags:
- Italian 🇮🇹
- Vegetarian 🌿
- Favourite ⭐
- Italien 🇮🇹
- Végétarien 🌿
- Préférée ⭐
time: 50 min
servings: 2
sourceLabel: BBC good food

View file

@ -1,12 +1,12 @@
---
title: Simple brownies
title: Brownies simples
image: https://ichef.bbci.co.uk/food/ic/food_16x9_1600/recipes/richchocolatebrownie_1933_16x9.jpg
tags:
- Sweet 🍬
- Cake 🍰
- Vegetarian 🌿
- Sharable
- Favourite ⭐
- Douceurs 🍬
- Gateeau 🍰
- Végétarien 🌿
- Partageable
- Préférée ⭐
time: 45 min
servings: 4
sourceLabel: BBC good food

View file

@ -5,7 +5,7 @@ pagination:
alias: selectedTag
permalink: /tags/{{ selectedTag | noEmoji | slug }}/
layout: layouts/recipes-list.njk
allRecipesLabel: All recipes
allRecipesLabel: Toutes les recettes
eleventyComputed:
metaTitle: "{{ selectedTag | noEmoji }}"
---