Is there a way to programmatically get which local...
# android
l
Is there a way to programmatically get which locales have supported string files? I.e. if my app has both a
strings-en
and
strings-fr
file is there some way to get the system to return to me a
[Locale.ENGLISH, Locale.FRENCH]
array? Or
["en","fr"]
or similar
stackoverflow 2
a
It wouldn't make sense, because you can have multiple string files for different locales with completely different contents. For example
R.string.foo
could be in
values/strings.xml
and
values-fr/strings.xml
, while
R.string.bar
could be in
values/strings.xml
and
values-fr/cordes.xml