Thailand confirmed two new cases of the coronavirus, a senior health official said, bringing the total infections in the country to 37.