Skip to content

Commit

Permalink
Translate FR -> EN toast messages
Browse files Browse the repository at this point in the history
  • Loading branch information
s-damian committed Sep 1, 2024
1 parent ffb214b commit ba3641a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/frontend/src/handlers/HandleBuyTicket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const handleBuyTicket = async (
.signers([ticketAccount])
.rpc();

toast.success("Ticket acheté avec succès !");
toast.success("Ticket purchased successfully!");
console.log(`Transaction ID: ${txid}`);

// Récupère les tickets après la création d'un nouveau ticket.
Expand All @@ -54,7 +54,7 @@ export const handleBuyTicket = async (
]);
setTickets(accounts.map(({ publicKey, account }) => ({ publicKey, account })));
} catch (err) {
toast.error("Échec de l'achat du ticket.");
toast.error("Failed to buy ticket.");
console.error("Failed to buy ticket.", err);
}
};
4 changes: 2 additions & 2 deletions app/frontend/src/handlers/HandleCreateEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ export const handleCreateEvent = async (
.signers([eventAccount])
.rpc();

toast.success("Événement créé avec succès !");
toast.success("Event created successfully!");
console.log(`Transaction ID: ${txid}`);

resetForm(); // Reset le formulaire.
} catch (err) {
toast.error("Échec de la création de l'événement.");
toast.error("Failed to create event.");
console.error("Failed to create event.", err);
}
};
4 changes: 2 additions & 2 deletions app/frontend/src/handlers/HandleCreateNft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const handleCreateNft = async (
.signers([mint]) // Signer la transaction avec la clé du mint.
.rpc();

toast.success("NFT généré avec succès !");
toast.success("NFT generated successfully!");
console.log(`Transaction ID: ${txid}`);

// Mettre à jour les tickets après la création du NFT.
Expand All @@ -86,7 +86,7 @@ export const handleCreateNft = async (
]);
setTickets(accounts.map(({ publicKey, account }) => ({ publicKey, account })));
} catch (err) {
toast.error("Échec de de la génération du NFT.");
toast.error("Failed to create NFT.");
console.error("Failed to create NFT.", err);
}
};
4 changes: 2 additions & 2 deletions app/frontend/src/handlers/HandleVerifyNft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export const handleVerifyNft = async (e: React.FormEvent, nftPublicKey: string,
return;
}

toast.success("NFT vérifié avec succès !");
toast.success("NFT verified successfully!");
} catch (err) {
toast.error("Échec de la vérification du NFT.");
toast.error("Failed to verify NFT.");
console.error("Failed to verify NFT.", err);
}
};

0 comments on commit ba3641a

Please sign in to comment.