Taiwan's foreign ministry says the country will participate in this year's Pacific Islands Forum, after it was barred from attending in 2025.