mirror of
https://github.com/TheThomaas/my-online-cookbook.git
synced 2026-01-10 03:51:38 +00:00
Translate website to french
This commit is contained in:
parent
5c6d3dd533
commit
5294bab392
|
|
@ -11,6 +11,7 @@ module.exports = config => {
|
||||||
config.addPassthroughCopy('src/img');
|
config.addPassthroughCopy('src/img');
|
||||||
config.addPassthroughCopy('src/fonts');
|
config.addPassthroughCopy('src/fonts');
|
||||||
config.addPassthroughCopy('src/admin');
|
config.addPassthroughCopy('src/admin');
|
||||||
|
config.addPassthroughCopy({"src/_includes/js/" : "/js"});
|
||||||
|
|
||||||
|
|
||||||
/* Collections */
|
/* Collections */
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
{
|
{
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"text": "Home",
|
"text": "Accueil",
|
||||||
"url": "/"
|
"url": "/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "All recipes",
|
"text": "Recettes",
|
||||||
"url": "/recipes/"
|
"url": "/recipes/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "About",
|
"text": "À propos",
|
||||||
"url": "/about/"
|
"url": "/about/"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "My Online Cookbook",
|
"name": "Le livre de cuisine de Thomas",
|
||||||
"metaDescription": "The online cookbook of John Doe",
|
"metaDescription": "Toutes mes recettes de cuisine",
|
||||||
"author": "John Doe",
|
"author": "Thomas",
|
||||||
"primaryColor": "#ffdb70",
|
"primaryColor": "#7079ff",
|
||||||
"secondaryColor": "#32816e",
|
"secondaryColor": "#814c32",
|
||||||
"searchLabel": "Find recipes by name, tag or ingredients",
|
"searchLabel": "Chercher des recettes par nom, tag ou ingrédients",
|
||||||
"searchContainsLabel": "Contains",
|
"searchContainsLabel": "Contient",
|
||||||
"servingsLabel": "servings",
|
"servingsLabel": "personnes",
|
||||||
"ingredientsLabel": "Ingredients",
|
"ingredientsLabel": "Ingrédients",
|
||||||
"baseURL": "https://myonlinecookbook.netlify.app"
|
"baseURL": "https://myonlinecookbook.netlify.app"
|
||||||
}
|
}
|
||||||
8
src/_includes/js/alpine.min.js
vendored
Normal file
8
src/_includes/js/alpine.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -24,7 +24,8 @@
|
||||||
{% include "css/main.css" %}
|
{% include "css/main.css" %}
|
||||||
</style>
|
</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>
|
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js" defer></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="{{bodyClass}}">
|
<body class="{{bodyClass}}">
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
---
|
---
|
||||||
layout: layouts/base.njk
|
layout: layouts/base.njk
|
||||||
title: About
|
title: A propos
|
||||||
bodyClass: u-free-text
|
bodyClass: u-free-text
|
||||||
---
|
---
|
||||||
|
## Todo
|
||||||

|

|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
|
|
||||||
10
src/index.md
10
src/index.md
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
layout: layouts/home.njk
|
layout: layouts/home.njk
|
||||||
title: This cookbook belongs to
|
title: Ce cookbook appartient à
|
||||||
authorInTitle: true
|
authorInTitle: true
|
||||||
metaTitle: Home
|
metaTitle: Accueil
|
||||||
highlightedTag: Favourite ⭐
|
highlightedTag: Préférée ⭐
|
||||||
highlightedTitle: Some of my favourite recipes
|
highlightedTitle: Quelques unes de mes recettes préférées
|
||||||
highlightedLinkText: All my favourite recipes
|
highlightedLinkText: Toutes mes recettes préférées
|
||||||
---
|
---
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
layout: layouts/recipes-list.njk
|
layout: layouts/recipes-list.njk
|
||||||
title: All recipes
|
title: Toutes les recettes
|
||||||
---
|
---
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
title: Coconut lentil soup
|
title: Soupe de lentille à la noix de coco
|
||||||
image: /img/recipes/coconut-lentil-soup.jpg
|
image: /img/recipes/coconut-lentil-soup.jpg
|
||||||
tags:
|
tags:
|
||||||
- Soup 🥣
|
- Soupe 🥣
|
||||||
- Vegetarian 🌿
|
- Végétarien 🌿
|
||||||
- Vegan 🌱
|
- Vegan 🌱
|
||||||
sourceLabel: Bon Appétit
|
sourceLabel: Bon Appétit
|
||||||
sourceURL: https://www.bonappetit.com/recipe/vegan-coconut-lentil-soup
|
sourceURL: https://www.bonappetit.com/recipe/vegan-coconut-lentil-soup
|
||||||
servings: 4
|
servings: 4
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
title: Courgette & lemon risotto
|
title: Risotto courgette & citron
|
||||||
image: /img/recipes/courgette-lemon-risotto.jpg
|
image: /img/recipes/courgette-lemon-risotto.jpg
|
||||||
tags:
|
tags:
|
||||||
- Italian 🇮🇹
|
- Italien 🇮🇹
|
||||||
- Vegetarian 🌿
|
- Végétarien 🌿
|
||||||
- Favourite ⭐
|
- Préférée ⭐
|
||||||
time: 50 min
|
time: 50 min
|
||||||
servings: 2
|
servings: 2
|
||||||
sourceLabel: BBC good food
|
sourceLabel: BBC good food
|
||||||
|
|
|
||||||
|
|
@ -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
|
image: https://ichef.bbci.co.uk/food/ic/food_16x9_1600/recipes/richchocolatebrownie_1933_16x9.jpg
|
||||||
tags:
|
tags:
|
||||||
- Sweet 🍬
|
- Douceurs 🍬
|
||||||
- Cake 🍰
|
- Gateeau 🍰
|
||||||
- Vegetarian 🌿
|
- Végétarien 🌿
|
||||||
- Sharable
|
- Partageable
|
||||||
- Favourite ⭐
|
- Préférée ⭐
|
||||||
time: 45 min
|
time: 45 min
|
||||||
servings: 4
|
servings: 4
|
||||||
sourceLabel: BBC good food
|
sourceLabel: BBC good food
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ pagination:
|
||||||
alias: selectedTag
|
alias: selectedTag
|
||||||
permalink: /tags/{{ selectedTag | noEmoji | slug }}/
|
permalink: /tags/{{ selectedTag | noEmoji | slug }}/
|
||||||
layout: layouts/recipes-list.njk
|
layout: layouts/recipes-list.njk
|
||||||
allRecipesLabel: All recipes
|
allRecipesLabel: Toutes les recettes
|
||||||
eleventyComputed:
|
eleventyComputed:
|
||||||
metaTitle: "{{ selectedTag | noEmoji }}"
|
metaTitle: "{{ selectedTag | noEmoji }}"
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue