i18n(recept): steg + täcknings-etiketter spanska, översatta saknade-namn, cache-nyckel

- cooking-skärmen renderade instructionSv (alltid svenska) -> nu instruction ?? instructionSv
- recept-skärmens täckningskort hårdkodade svenska (Du har X% hemma, Saknar N,
  Du saknar, Lägg till i inköpslistan, Tillagt) -> t()-nycklar recipe.coverage.*
- coverage.missing fick översatt displayName i API:t (annars svenska ingrediensnamn)
- 7 nya recipe.coverage.*-nycklar i alla 12 språk
- persister-cache-nyckel -> -v2 (slänger gammal helsvensk cache en gang)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-08-21 00:06:33 +00:00
parent 02d5bc4f73
commit 4e86b1b724
16 changed files with 106 additions and 10 deletions
+2 -1
View File
@@ -34,6 +34,7 @@ interface RecipeForCooking {
id: string;
stepNumber: number;
instructionSv: string;
instruction?: string;
timerSeconds: number | null;
temperatureC: number | null;
tip: string | null;
@@ -246,7 +247,7 @@ export default function CookingScreen() {
{t("cooking.step", { current: stepIndex + 1, total: recipe.steps.length })}
</Heading>
<Text style={{ fontSize: 24, lineHeight: 34, color: colors.text }}>
{step?.instructionSv}
{step?.instruction ?? step?.instructionSv}
{step?.temperatureC ? ` (${step.temperatureC} °C)` : ""}
</Text>
{step?.tip && <Small>💡 {step.tip}</Small>}