Translations for cannon in French

Here are paragraphs from public domain books translated:
For just then, although the sun had still an hour or two to run, all the echoes of the island awoke and bellowed to the thunder of a cannon. Car à cet instant précis, bien que le soleil eût encore une heure ou deux à briller, tous les échos de l’île venaient de s’éveiller et retentissaient au tonnerre d’un coup de canon.
Treasure Island, by Robert Louis Stevenson L’Île au trésor, de Robert Louis Stevenson
He leaped with Planchet into the boat, and five minutes after they were on board. It was time; for they had scarcely sailed half a league, when d'Artagnan saw a flash and heard a detonation. It was the cannon which announced the closing of the port. Et il sauta avec Planchet dans le canot ; cinq minutes après, ils étaient à bord. À une demi-lieue en mer, d’Artagnan vit briller une lumière et entendit une détonation. C’était le coup de canon qui annonçait la fermeture du port.
The Three Musketeers, by Alexandre Dumas Les Trois Mousquetaires, de Alexandre Dumas