public static boolean isZh(Context context){
Locale locale = context.getResources().getConfiguration().locale;
String language = locale.getLanguage();
if (language.endsWith("zh")){
return true;
}
return false;
判断当前语言环境是否为中文
最新推荐文章于 2022-12-08 19:33:42 发布