The British captured the island in 1810 , during the Napoleonic Wars .