- Ballaststoffe: {meal.nutrition.fiber}g
- Zucker: {meal.nutrition.sugar}g
+
+ {$_('food.detail.fiber_with_value', {
+ values: { n: meal.nutrition.fiber },
+ })}
+
+
+ {$_('food.detail.sugar_with_value', {
+ values: { n: meal.nutrition.sugar },
+ })}
+
{/if}
@@ -288,7 +312,7 @@
onclick={startEdit}
class="rounded-lg border border-[hsl(var(--color-border))] px-4 py-2 text-sm text-[hsl(var(--color-foreground))] hover:bg-[hsl(var(--color-muted))]"
>
- Bearbeiten
+ {$_('food.common.edit')}
{#if meal.inputType === 'photo' && meal.photoUrl}
{/if}
{#if !confirmDelete}
@@ -307,24 +333,26 @@
class="ml-auto inline-flex items-center gap-1 rounded-lg border border-[hsl(var(--color-border))] px-4 py-2 text-sm text-red-600 hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-900/20"
>
- Löschen
+ {$_('food.common.delete')}
{:else}
- Sicher?
+ {$_('food.detail.confirm_sure')}
{/if}
@@ -334,7 +362,7 @@
- Mahlzeittyp
+ {$_('food.detail.label_meal_type')}
{#each mealTypes as type}
@@ -357,7 +385,7 @@
for="edit-desc"
class="mb-2 block text-sm font-medium text-[hsl(var(--color-foreground))]"
>
- Beschreibung
+ {$_('food.detail.label_description')}