Listing languages ​​supported by the Android keyboard

I need to display a list of all languages ​​supported by the Android keyboard. Now I use the Locale.getAvailableLocales(); method Locale.getAvailableLocales(); but I get language and country constants.

I only need the names of the languages. Is it possible? And How?.

+6
source share
1 answer

How about using Locale.getDisplayName (Locale) in each locale that you get with Locale.getAvailableLocales(); ?

It returns the name of the language, the name of the country, and a variant localized in the locale.

new Locale ("en"). getDisplayName (Locale.US) → English

+1
source

Source: https://habr.com/ru/post/892000/


All Articles