6

I need to display the list of the all languages which are supported by android keyboard. Now I am using Locale.getAvailableLocales(); method but i am getting language and country constants.

I need all language names only. Is it possible? and how ?.

Asaf Pinhassi
  • 15,177
  • 12
  • 106
  • 130
surendra
  • 2,217
  • 7
  • 34
  • 42

1 Answers1

1

How about using Locale.getDisplayName(Locale) on each Locale you get with Locale.getAvailableLocales();?

Returns this locale's language name, country name, and variant, localized to locale.

new Locale("en").getDisplayName(Locale.US) -> English

Kuitsi
  • 1,675
  • 2
  • 28
  • 48