From 6e4f9a234b2ea2d2b2dabf7d2e6cf7855f274722 Mon Sep 17 00:00:00 2001 From: Dom <73385395+ziegenhagel@users.noreply.github.com> Date: Tue, 19 Nov 2024 01:35:49 +0100 Subject: [PATCH] fix: 4497 (#4562) Co-authored-by: Dominik --- mealie/lang/messages/en-US.json | 1 + mealie/services/recipe/recipe_service.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mealie/lang/messages/en-US.json b/mealie/lang/messages/en-US.json index 57aa0572e..ad7c43af4 100644 --- a/mealie/lang/messages/en-US.json +++ b/mealie/lang/messages/en-US.json @@ -4,6 +4,7 @@ }, "recipe": { "unique-name-error": "Recipe names must be unique", + "recipe-created": "Recipe Created", "recipe-defaults": { "ingredient-note": "1 Cup Flour", "step-text": "Recipe steps as well as other fields in the recipe page support markdown syntax.\n\n**Add a link**\n\n[My Link](https://demo.mealie.io)\n" diff --git a/mealie/services/recipe/recipe_service.py b/mealie/services/recipe/recipe_service.py index e07f5f366..8bf3f1bba 100644 --- a/mealie/services/recipe/recipe_service.py +++ b/mealie/services/recipe/recipe_service.py @@ -190,7 +190,7 @@ class RecipeService(RecipeServiceBase): timeline_event_data = RecipeTimelineEventCreate( user_id=new_recipe.user_id, recipe_id=new_recipe.id, - subject="Recipe Created", + subject=self.t("recipe.recipe-created"), event_type=TimelineEventType.system, timestamp=new_recipe.created_at or datetime.now(timezone.utc), )