That’s exactly what is happening: Windows 10 "China Edition" or some moves from Apple to comply with Chinese regulations for example.
Respecting local regulations is not a mind blowing fact. A foreign company cannot sell heroin in the USA under the pretext it is legal in their country.