Skip to content

Instantly share code, notes, and snippets.

@courville
Created February 1, 2020 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save courville/dbc65c1b881b1738878791c1b1d391da to your computer and use it in GitHub Desktop.
Save courville/dbc65c1b881b1738878791c1b1d391da to your computer and use it in GitHub Desktop.
two letter ISO639-1 to language conversion
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