When was the Philippines called the republic of the philippines?

It was July 4, 1946 that US granted independence to the country. It was in June 12, 1898 that the Philippines proclaimed independence against Spaniards. The name of the country was called the republic of the Philippines. When the American won the war, they changed the name of the country to commonwealth of the Philippines.