fix the non-amount numbers in charts are not formatted using localized number formatting

This commit is contained in:
MaysWind
2026-01-16 23:29:26 +08:00
parent 98aa535193
commit 7e48cca4ab
3 changed files with 14 additions and 5 deletions
+2 -1
View File
@@ -84,6 +84,7 @@ const {
getCurrentLanguageTextDirection,
formatAmountToWesternArabicNumeralsWithoutDigitGrouping,
formatAmountToLocalizedNumeralsWithCurrency,
formatNumberToLocalizedNumerals,
formatPercentToLocalizedNumerals
} = useI18n();
@@ -403,7 +404,7 @@ function getDisplayValue(value: number): string {
return formatAmountToLocalizedNumeralsWithCurrency(value, props.defaultCurrency);
}
return value.toString();
return formatNumberToLocalizedNumerals(value);
}
function clickItem(e: ECElementEvent): void {