fix: translate dietary tags, recipe tags form, edit title, nutrition bar (v0.27.2)

These were hardcoded English strings ignoring app locale:
DietaryTagPicker, the recipe tag-input label/placeholder/help/aria-label,
the Edit recipe page heading, and WeeklyNutritionBar's labels/messages.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Arnaud
2026-07-14 13:20:38 +02:00
parent 8ef97da2c2
commit 1237330a0c
10 changed files with 62 additions and 24 deletions
@@ -6,6 +6,7 @@ import { db, recipes } from "@epicure/db";
import { and, eq } from "@epicure/db";
import { RecipeForm } from "@/components/recipe/recipe-form";
import { getPublicUrl } from "@/lib/storage";
import { getMessages } from "@/lib/i18n/server";
type Params = { params: Promise<{ id: string }> };
@@ -28,6 +29,8 @@ export default async function EditRecipePage({ params }: Params) {
if (!recipe) notFound();
const m = getMessages((session.user as { locale?: string }).locale);
const defaultValues = {
title: recipe.title,
description: recipe.description ?? undefined,
@@ -71,7 +74,7 @@ export default async function EditRecipePage({ params }: Params) {
return (
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold tracking-tight">Edit recipe</h1>
<h1 className="text-3xl font-bold tracking-tight">{m.recipes.editTitle}</h1>
<p className="text-muted-foreground mt-1">{recipe.title}</p>
</div>
<RecipeForm recipeId={id} defaultValues={defaultValues} />