goja-core/src/main/java/goja/core/kits/lang/LocaleKit.java
protected static LocaleData lookupLocaleData(String code) {
        LocaleData localeData = locales.get(code);
        if (localeData == null) {
            String[] data = decodeLocaleCode(code);
            localeData = new LocaleData(new Locale(data[0], data[1], data[2]));
            locales.put(code, localeData);
        }
        return localeData;
    }
protected static LocaleData lookupLocaleData(String code) {
        LocaleData localeData = locales.get(code);
        if (localeData == null) {
            String[] data = decodeLocaleCode(code);
            localeData = new LocaleData(new Locale(data[0], data[1], data[2]));
            locales.put(code, localeData);
        }
        return localeData;
    }
protected static LocaleData lookupLocaleData ( String code ) { LocaleData localeData = locales . get ( code ) ; if ( localeData == null ) { String [ ] data = decodeLocaleCode ( code ) ; localeData = new LocaleData ( new Locale ( data [ 0 ] , data [ 1 ] , data [ 2 ] ) ) ; locales . put ( code , localeData ) ; } return localeData ; }
Lookups for locale data and creates new if it doesn't exist.
Lookups for locale data and creates new if it doesn t exist .