Created
February 1, 2020 11:53
-
-
Save courville/dbc65c1b881b1738878791c1b1d391da to your computer and use it in GitHub Desktop.
two letter ISO639-1 to language conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String language_iso_639_1 = "fr"; | |
if (language_iso_639_1 != null) { | |
Locale locale = new Locale(language_iso_639_1); | |
String language = locale.getDisplayLanguage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment