I'm implementing multiple language support for my application. For now in my default values
folder I have strings for english locale. I also have a folder for swedish values-sv
.
I want to let the user to be able to choose the locale manually, for that I need to display a list with supported languages.
Is there a way to get which locales are supported(have their own values folder)?
So far I have:
String[] languages = getResources().getAssets().getLocales();
But this returns all the languages that are supported by this Android version but it does not make sense to show that long list. I only need the languages supported by my application.