South Africa has skated over the latest criticism from US President Donald Trump, who has said he does not think the country should be part of the G20 any longer.

Presidential spokesperson Vincent Magwenya told the BBC his country was confident it would host a very successful G20 summit when leaders from the world's largest economies gather in Johannesburg later this month.

Trump, who has repeatedly accused South Africa of discriminating against its white minority, will not be attending - sending Vice-President JD Vance instead.

Every year, a different member state holds the presidency of the G20 and sets the agenda for the leaders' summit - with the US due to take over after South Africa.

South Africa shouldn't even be in the Gs any more, because what's happened there is bad. I'm not going to represent our country there. It shouldn't be there, Trump said at a conference in Miami on Wednesday.

South Africa's government declined to make a full statement in response to these comments, though last week it hit back at the US's decision to prioritize refugee applications from white South African Afrikaners, who are mostly descendants of Dutch and French settlers.

It said claims of a white genocide had been widely discredited and lacked reliable evidence.

The G20 was founded in 1999 after the Asian financial crisis. The nations involved have more than 85% of the world's wealth and its aim was to restore economic stability.

The leaders get together each year to talk about the world's economies and the issues countries are facing.

This year South Africa has adopted the theme of solidarity, equality, and sustainability - something emphasized following Trump's criticism.

Trump offered refugee status to Afrikaners earlier this year after South African President Cyril Ramaphosa signed a law allowing the government to seize land without compensation in rare instances.

Efforts by South Africa to mend the relationship have been thwarted by tensions that surfaced during a meeting where Trump made unsubstantiated claims regarding violence against white farmers.