diff --git a/frontend/vizzy/app/listing/[id]/page.tsx b/frontend/vizzy/app/listing/[id]/page.tsx index b36c4a0..fe0969e 100644 --- a/frontend/vizzy/app/listing/[id]/page.tsx +++ b/frontend/vizzy/app/listing/[id]/page.tsx @@ -205,7 +205,7 @@ export default function ProductListing({ {listingT('details.notFoundDesc')}

} @@ -393,7 +395,7 @@ export default function ProductListing({ + } @@ -408,10 +410,7 @@ export default function ProductListing({ + } @@ -420,7 +419,7 @@ export default function ProductListing({ + } @@ -435,7 +434,7 @@ export default function ProductListing({ + } @@ -450,7 +449,7 @@ export default function ProductListing({ + } @@ -554,7 +553,9 @@ export default function ProductListing({ onClick={handleFavoriteClick} disabled={isFavoriteLoading} title={ - isFavorite ? 'Remove from favorites' : 'Add to favorites' + isFavorite + ? listingT('favorites.removeFromFavorites') + : listingT('favorites.addToFavorites') } > {isFavorite ? ( @@ -563,7 +564,9 @@ export default function ProductListing({ )} - {isFavorite ? 'Remove from favorites' : 'Add to favorites'} + {isFavorite + ? listingT('favorites.removeFromFavorites') + : listingT('favorites.addToFavorites')} )} diff --git a/frontend/vizzy/messages/en.json b/frontend/vizzy/messages/en.json index e91b9d3..708897b 100644 --- a/frontend/vizzy/messages/en.json +++ b/frontend/vizzy/messages/en.json @@ -294,7 +294,8 @@ "browseOthers": "Browse Other Listings", "negotiable": "Negotiable", "depositRequired": "Deposit Required", - "sellerInfo": "Seller Information" + "sellerInfo": "Seller Information", + "deposit": "Deposit Required" }, "actions": { "buyNow": "Buy Now", @@ -323,6 +324,10 @@ "favoriteRemovedDescription": "This listing was successfully removed from your favorites section.", "favoriteError": "Failed to add/remove listing from favorites. Please try again.", "favoriteErrorDescription": "An error occurred while adding/removing this listing from your favorites. Please try again later." + }, + "favorites": { + "removeFromFavorites": "Remove from favorites", + "addToFavorites": "Add to favorites" } }, "homepage": { diff --git a/frontend/vizzy/messages/pt.json b/frontend/vizzy/messages/pt.json index 22ef71c..a1cab21 100644 --- a/frontend/vizzy/messages/pt.json +++ b/frontend/vizzy/messages/pt.json @@ -293,7 +293,8 @@ "browseOthers": "Explorar Outros Anúncios", "negotiable": "Negociável", "depositRequired": "Depósito Necessário", - "sellerInfo": "Informação do Vendedor" + "sellerInfo": "Informação do Vendedor", + "deposit": "Depósito Necessário" }, "actions": { "buyNow": "Comprar Agora", @@ -322,6 +323,10 @@ "favoriteRemovedDescription": "Este anúncio foi removido com sucesso da tua lista de favoritos.", "favoriteError": "Falha ao adicionar/remover anúncio aos/dos favoritos. Por favor, tenta novamente.", "favoriteErrorDescription": "Ocorreu um erro ao adicionar/remover este anúncio aos/dos favoritos. Por favor, tenta novamente mais tarde." + }, + "favorites": { + "removeFromFavorites": "Remover dos favoritos", + "addToFavorites": "Adicionar aos favoritos" } }, "homepage": {