Example usage for java.util Locale getDefault

List of usage examples for java.util Locale getDefault

Introduction

In this page you can find the example usage for java.util Locale getDefault.

Prototype

public static Locale getDefault() 

Source Link

Document

Gets the current value of the default locale for this instance of the Java Virtual Machine.

Usage

From source file:Main.java

public static String getLang() {
    return Locale.getDefault().getLanguage();
}

From source file:Main.java

public static String getRegion() {
    return Locale.getDefault().getCountry().toString();
}

From source file:Main.java

public static String getLanguage() {
    return Locale.getDefault().getCountry();
}

From source file:Main.java

public static String getCountry() {
    return Locale.getDefault().getCountry();
}

From source file:Main.java

public static boolean isLocaleKorea() {
    return Locale.getDefault().getCountry().equals(Locale.KOREA.getCountry());
}

From source file:Main.java

public static String getSysLanguage() {
    return Locale.getDefault().getLanguage();
}

From source file:Main.java

final static public String getLanguage() {
    return Locale.getDefault().getLanguage();
}

From source file:Main.java

public static boolean isRTL() {
    return isRTL(Locale.getDefault());
}

From source file:Main.java

public static boolean isLocale(String str) {
    return Locale.getDefault().getLanguage().equals(str);
}

From source file:Main.java

public static String getCurrentCountryCode() {
    return Locale.getDefault().getCountry().trim();
}