https://kotlinlang.org logo
Title
l

locke

04/23/2018, 5:47 PM
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

arekolek

04/24/2018, 7:54 AM
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