New York (CNN) Apple is temporarily closing all of its stores in China because of the coronavirus outbreak.

Apple AAPL 's website in China says that all 42 stores will be closed until February 9. The online website still works for customers in China.

"Out of an abundance of caution and based on the latest advice from leading health experts, we're closing all our corporate offices, stores and contact centers in mainland China through February 9," Apple told CNN Business in a statement. "We will continue to closely monitor the situation and we look forward to reopening our stores as soon as possible."

Almost 12,000 cases have been confirmed worldwide , with more than 11,800 of those in China. At least 26 other countries have reported cases, including three in Japan, two in the UK and two in Australia Saturday.

Beijing has taken unprecedented measures to try to contain the virus, including placing millions of people in major cities on lockdown and extending the Lunar New Year holiday.

Read More