diff --git a/01-frontend/public/locales/de/translation.json b/01-frontend/public/locales/de/translation.json index b0ddc21..a17839f 100644 --- a/01-frontend/public/locales/de/translation.json +++ b/01-frontend/public/locales/de/translation.json @@ -83,5 +83,6 @@ "thanksForOrder": "Vielen Dank für die Bestellung!", "wrongTurn": "Ein falscher Weg wurde eingeschlagen. Hier geht es zurück auf den richtigen Pfad.", "yourOrderNumber": "Die Bestellnummer lautet", - "articleNumber": "Artikelnummer" + "articleNumber": "Artikelnummer", + "noRatingsYet": "Noch keine Bewertungen vorhanden." } diff --git a/01-frontend/public/locales/en/translation.json b/01-frontend/public/locales/en/translation.json index 23d84dd..bf76cd0 100644 --- a/01-frontend/public/locales/en/translation.json +++ b/01-frontend/public/locales/en/translation.json @@ -83,5 +83,6 @@ "thanksForOrder": "Thank you for your order!", "wrongTurn": "It seems you may have taken a wrong turn. Let's get you back on track.", "yourOrderNumber": "Your order number is", - "articleNumber": "Article number" + "articleNumber": "Article number", + "noRatingsYet": "No ratings yet" } diff --git a/01-frontend/src/helper/productpage/ProductInfo.tsx b/01-frontend/src/helper/productpage/ProductInfo.tsx index 7050168..ce6c2c3 100644 --- a/01-frontend/src/helper/productpage/ProductInfo.tsx +++ b/01-frontend/src/helper/productpage/ProductInfo.tsx @@ -89,7 +89,8 @@ export default function ProductInfo({ item }: { item: Item }) { - ({item.rating} / 5) + {item.rating > 0 ? `(${item.rating} / 5)`: t('noRatingsYet')} +