Can I dynamically find which languages are supported by the application? For example, I have strings for the following languages: English, French, Dutch, and German. Defined in the relevant directories res: values values-fr, values-nland values-de. I want to give the user the opportunity to choose between them, and for this I want to download them. But I do not want to hard code the choice. I tried using:
getApplication().getResources().getAssets().getLocales()
But this method returns all locales supported by the phone.
Do you have another idea?
source
share