It depends on the country. In the US, we pronounce it with a ‘hard g’ as in ‘magnet’, but in some countries, it’s pronounced with a ‘soft g’ as in ‘magic’.