public static String getThousandSeparator(FacesContext context) {
        Locale locale = getCurrentLocale(context);
        DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols(locale);
        return Character.toString(decimalFormatSymbols.getGroupingSeparator());
    }
Some JS libraries like FullCalendar used by Schedule require the locale for "pt_BR" to be "pt-br".

@param locale the Locale to convert
@return the Javascript string locale
primefaces/src/main/java/org/primefaces/util/LocaleUtils.java