added some translations

This commit is contained in:
Laura Dolibois
2025-05-25 00:07:29 +02:00
parent 58a6a4ad76
commit 4f4397523e
3 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
"freeShipping": "Kostenloser Versand ab 50€ Bestellwert", "freeShipping": "Kostenloser Versand ab 50€ Bestellwert",
"inStock": "Verfügbar", "inStock": "Verfügbar",
"outOfStock": "Ausverkauft", "outOfStock": "Ausverkauft",
"quantity": "Anzahl",
"rateThisProduct": "Dieses Produkt bewerten", "rateThisProduct": "Dieses Produkt bewerten",
"ratingFrom": "Bewertung vom", "ratingFrom": "Bewertung vom",
"review": "Produktrezension (optional)", "review": "Produktrezension (optional)",

View File

@@ -4,6 +4,7 @@
"freeShipping": "Free shipping for orders over 50€", "freeShipping": "Free shipping for orders over 50€",
"inStock": "In stock", "inStock": "In stock",
"outOfStock": "Out of stock", "outOfStock": "Out of stock",
"quantity": "Quantity",
"rateThisProduct": "Rate this product", "rateThisProduct": "Rate this product",
"ratingFrom": "Rating from", "ratingFrom": "Rating from",
"review": "Product review (optional)", "review": "Product review (optional)",

View File

@@ -129,7 +129,7 @@ export default function ProductInfo({ item }: { item: Item }) {
<Stack direction="row" spacing={2} alignItems="center"> <Stack direction="row" spacing={2} alignItems="center">
<TextField <TextField
type="number" type="number"
label="Quantity" label={t('quantity')}
value={quantity} value={quantity}
onChange={(e) => setQuantity(Math.max(1, parseInt(e.target.value)))} onChange={(e) => setQuantity(Math.max(1, parseInt(e.target.value)))}
InputProps={{ inputProps: { min: 1, max: item.stock } }} InputProps={{ inputProps: { min: 1, max: item.stock } }}