From 4f4397523ea9a568d59d41462e43a2fd83fc8f9a Mon Sep 17 00:00:00 2001 From: Laura Dolibois Date: Sun, 25 May 2025 00:07:29 +0200 Subject: [PATCH] added some translations --- 01-frontend/public/locales/de/translation.json | 1 + 01-frontend/public/locales/en/translation.json | 1 + 01-frontend/src/helper/productpage/ProductInfo.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/01-frontend/public/locales/de/translation.json b/01-frontend/public/locales/de/translation.json index e2e6254..2461abe 100644 --- a/01-frontend/public/locales/de/translation.json +++ b/01-frontend/public/locales/de/translation.json @@ -4,6 +4,7 @@ "freeShipping": "Kostenloser Versand ab 50€ Bestellwert", "inStock": "Verfügbar", "outOfStock": "Ausverkauft", + "quantity": "Anzahl", "rateThisProduct": "Dieses Produkt bewerten", "ratingFrom": "Bewertung vom", "review": "Produktrezension (optional)", diff --git a/01-frontend/public/locales/en/translation.json b/01-frontend/public/locales/en/translation.json index b7b20d1..a770bee 100644 --- a/01-frontend/public/locales/en/translation.json +++ b/01-frontend/public/locales/en/translation.json @@ -4,6 +4,7 @@ "freeShipping": "Free shipping for orders over 50€", "inStock": "In stock", "outOfStock": "Out of stock", + "quantity": "Quantity", "rateThisProduct": "Rate this product", "ratingFrom": "Rating from", "review": "Product review (optional)", diff --git a/01-frontend/src/helper/productpage/ProductInfo.tsx b/01-frontend/src/helper/productpage/ProductInfo.tsx index 523938e..1fa69e2 100644 --- a/01-frontend/src/helper/productpage/ProductInfo.tsx +++ b/01-frontend/src/helper/productpage/ProductInfo.tsx @@ -129,7 +129,7 @@ export default function ProductInfo({ item }: { item: Item }) { setQuantity(Math.max(1, parseInt(e.target.value)))} InputProps={{ inputProps: { min: 1, max: item.stock } }}