diff --git a/01-frontend/public/locales/de/translation.json b/01-frontend/public/locales/de/translation.json index ffead84..60e74d9 100644 --- a/01-frontend/public/locales/de/translation.json +++ b/01-frontend/public/locales/de/translation.json @@ -7,7 +7,8 @@ "addToCart": "In den Warenkorb", "addedToCart": "Produkt wurde erfolgreich dem Warenkorb hinzugefügt", "almostSoldOut": "Fast ausverkauft", - "all": "Alle", + "allCategories": "Alle Kategorien", + "allRatings": "Alle Bewertungen", "available": "Stück verfügbar", "back": "Zurück", "backToHome": "Zurück zur Startseite", diff --git a/01-frontend/public/locales/en/translation.json b/01-frontend/public/locales/en/translation.json index ac82529..36d73f1 100644 --- a/01-frontend/public/locales/en/translation.json +++ b/01-frontend/public/locales/en/translation.json @@ -7,7 +7,8 @@ "addToCart": "Add to cart", "addedToCart": "Product added to shopping cart successfully", "almostSoldOut": "Almost sold out", - "all": "Show all", + "allCategories": "All categories", + "allRatings": "All ratings", "available": "items available", "back": "Back", "backToHome": "Go back to home", diff --git a/01-frontend/src/pages/Home.tsx b/01-frontend/src/pages/Home.tsx index f9e0853..501aee7 100644 --- a/01-frontend/src/pages/Home.tsx +++ b/01-frontend/src/pages/Home.tsx @@ -369,7 +369,7 @@ export default function Home() { ]; const categoriesFilter = [ - { value: "", label: t("all") }, + { value: "", label: t('allCategories') }, { value: "Seeds", label: t("seeds") }, { value: "GardenSupplies", label: t("gardenSupplies") }, { value: "TechnicalComponents", label: t("technicalComponents") }, @@ -377,7 +377,7 @@ export default function Home() { ]; const ratingFilter = [ - { value: "", label: t("all") }, + { value: "", label: t('allRatings') }, ...[5, 4, 3, 2, 1].map(value => ({ value: value.toString(), label: value.toString()