made locale loading for components asynchronous