I have a project which has the core and also a library
I change my locale in run time in my core project.
The problem is , in the library project there is a
Locale.getDefault();
which only return the locale of the device but not the locale of the app. That means, when I change the locale to French in my app , if my device use English , the locale get by library project is still English. How to fix it? Thanks
You can change the default locale.
You can try with the below code:
Or make a locale setter method: