Skip to content

Instantly share code, notes, and snippets.

@sakurabird
Created September 17, 2015 13:15
Show Gist options
  • Save sakurabird/6c88fc121e6a715be9f1 to your computer and use it in GitHub Desktop.
Save sakurabird/6c88fc121e6a715be9f1 to your computer and use it in GitHub Desktop.
/**
* 環境が日本語ならtrue
*/
public static boolean isJapan() {
String locale = MyApplication.getContext().getResources().getConfiguration().locale.getLanguage();
Utils.logDebug("locale:" + locale);
return locale.equals("ja");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment