goja-core/src/main/java/goja/core/kits/lang/LocaleKit.java
public static String[] decodeLocaleCode(String localeCode) {
        String result[] = new String[3];
        String[] data = CharKit.splitc(localeCode, '_');
        result[0] = data[0];
        result[1] = result[2] = StringPool.EMPTY;
        if (data.length >= 2) {
            result[1] = data[1];
            if (data.length >= 3) {
                result[2] = data[2];
            }
        }
        return result;
    }
public static String[] decodeLocaleCode(String localeCode) {
        String result[] = new String[3];
        String[] data = CharKit.splitc(localeCode, '_');
        result[0] = data[0];
        result[1] = result[2] = StringPool.EMPTY;
        if (data.length >= 2) {
            result[1] = data[1];
            if (data.length >= 3) {
                result[2] = data[2];
            }
        }
        return result;
    }
Decodes locale code in string array that can be used for <code>Locale</code> constructor.