,
}
diff --git a/backend/src/translation.rs b/backend/src/translation.rs
index 7e85874..157a707 100644
--- a/backend/src/translation.rs
+++ b/backend/src/translation.rs
@@ -107,6 +107,11 @@ pub enum Sentence {
RecipeIngredientQuantity,
RecipeIngredientUnit,
RecipeIngredientComment,
+
+ // View Recipe.
+ RecipeOneServing,
+ RecipeSomeServings,
+ RecipeEstimatedTimeMinAbbreviation,
}
pub const DEFAULT_LANGUAGE_CODE: &str = "en";
diff --git a/backend/templates/recipe_view.html b/backend/templates/recipe_view.html
index 7a5f7a6..926aa91 100644
--- a/backend/templates/recipe_view.html
+++ b/backend/templates/recipe_view.html
@@ -9,6 +9,31 @@
Edit
{% endif %}
+
+ {% for tag in recipe.tags %}
+ {{ tag }}
+ {% endfor %}
+
+
+ {% match recipe.servings %}
+ {% when Some(servings) %}
+
+ {% if *servings == 1 %}
+ {{ tr.t(Sentence::RecipeOneServing) }}
+ {% else %}
+ {{ tr.tp(Sentence::RecipeSomeServings, [Box::new(**servings)]) }}
+ {% endif %}
+
+ {% else %}
+ {% endmatch %}
+
+
+ {% match recipe.estimated_time %}
+ {% when Some(time) %}
+ {{ time +}} {{+ tr.t(Sentence::RecipeEstimatedTimeMinAbbreviation) }}
+ {% else %}
+ {% endmatch %}
+
{% if !recipe.description.is_empty() %}
{{ recipe.description.clone() }}
diff --git a/backend/translation.ron b/backend/translation.ron
index 8638f71..dc02b19 100644
--- a/backend/translation.ron
+++ b/backend/translation.ron
@@ -94,6 +94,10 @@
(RecipeIngredientQuantity, "Quantity"),
(RecipeIngredientUnit, "Unit"),
(RecipeIngredientComment, "Comment"),
+
+ (RecipeOneServing, "1 serving"),
+ (RecipeSomeServings, "{} servings"),
+ (RecipeEstimatedTimeMinAbbreviation, "min"),
]
),
(
@@ -191,6 +195,10 @@
(RecipeIngredientQuantity, "Quantité"),
(RecipeIngredientUnit, "Unité"),
(RecipeIngredientComment, "Commentaire"),
+
+ (RecipeOneServing, "pour 1 personne"),
+ (RecipeSomeServings, "pour {} personnes"),
+ (RecipeEstimatedTimeMinAbbreviation, "min"),
]
)
]
\ No newline at end of file