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:
@@ -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>}
|
||||
|
||||
Reference in New Issue
Block a user