@Override
public String formatPercent(double percent, Locale locale, int minFractionDigits, int maxFractionDigits) {
if (locale == null) {
locale = Aura.getLocalizationAdapter().getAuraLocale().getNumberLocale();
}
NumberFormat nf = NumberFormat.getPercentInstance(locale);
nf.setMinimumFractionDigits(minFractionDigits);
nf.setMaximumFractionDigits(maxFractionDigits);
return nf.format(percent);
}