diff --git a/app/[slug]/page.tsx b/app/[slug]/page.tsx index be1cb3c..18f6ec5 100644 --- a/app/[slug]/page.tsx +++ b/app/[slug]/page.tsx @@ -70,14 +70,14 @@ export default function PublicWishlistPage() { setClaimNote(''); fetchWishlist(); } catch (err: any) { - setClaimError(err.message || 'Failed to claim item'); + setClaimError(err.message || 'Erro ao reservar item'); } finally { setIsClaiming(false); } }; const handleUnclaim = async (itemId: string) => { - if (!confirm('Are you sure you want to unclaim this item?')) { + if (!confirm('Tem certeza que deseja cancelar a reserva deste item?')) { return; } @@ -88,7 +88,7 @@ export default function PublicWishlistPage() { await claimingApi.unclaim(itemId); fetchWishlist(); } catch (err: any) { - setUnclaimError(err.message || 'Failed to unclaim item'); + setUnclaimError(err.message || 'Erro ao cancelar reserva'); } finally { setIsUnclaiming(false); } @@ -100,16 +100,16 @@ export default function PublicWishlistPage() { const formatPrice = (price: number | null, currency: string) => { if (!price) return null; - return new Intl.NumberFormat('en-US', { + return new Intl.NumberFormat('pt-BR', { style: 'currency', - currency: currency || 'USD', + currency: currency || 'BRL', }).format(price); }; if (isLoading) { return (
-

Loading...

+

Carregando...

); } @@ -118,8 +118,8 @@ export default function PublicWishlistPage() { return (
-

Wishlist Not Found

-

{error || 'This wishlist does not exist or is not public.'}

+

Lista não encontrada

+

{error || 'Esta lista não existe ou não é pública.'}

); @@ -155,14 +155,14 @@ export default function PublicWishlistPage() { d="M10 19l-7-7m0 0l7-7m-7 7h18" /> - Back to Home + Voltar ao início {/* Preferences Section */} {wishlist.preferences && (

- General Interests & Preferences + Interesses e Preferências

setShowClaimed(e.target.checked)} className="h-4 w-4 text-blue-600 border-gray-300 rounded" /> - Show claimed items + Mostrar itens reservados
- {filteredItems.length} of {items.length} items + {filteredItems.length} de {items.length} itens
@@ -201,7 +201,7 @@ export default function PublicWishlistPage() { {filteredItems.length === 0 ? (

- {showClaimed ? 'No items in this wishlist yet' : 'All items have been claimed!'} + {showClaimed ? 'Nenhum item nesta lista ainda' : 'Todos os itens já foram reservados!'}

) : ( @@ -272,30 +272,30 @@ export default function PublicWishlistPage() {

- Item Claimed! + Item reservado!

- The status is now locked. + O status está confirmado.

{justClaimedNote && (

- Your Note: "{justClaimedNote}" + Sua nota: "{justClaimedNote}"

)} ) : item.claimedAt ? (

- Claimed by {item.claimedByName} + Reservado por {item.claimedByName}

{item.claimedByNote && (

- Note: {item.claimedByNote} + Nota: {item.claimedByNote}

)} {item.isPurchased && (

- ✓ Purchased + ✓ Comprado

)} {showClaimed && ( @@ -304,7 +304,7 @@ export default function PublicWishlistPage() { disabled={isUnclaiming} className="mt-3 w-full px-4 py-2 bg-red-500 text-white rounded-md hover:bg-red-600 font-medium disabled:opacity-50 transition-colors cursor-pointer text-sm" > - {isUnclaiming ? 'Unclaiming...' : 'Unclaim Item'} + {isUnclaiming ? 'Cancelando...' : 'Cancelar reserva'} )}
@@ -319,12 +319,12 @@ export default function PublicWishlistPage() {