I'm getting an issue with the percentage localization.
As shown in the above image, I'm not getting localized percentages in Android but getting in iOS. I have written the same js function in both iOS & android codes and passed it to the formatter.
Code: Select all
"function() { if ((this.total - Math.floor(this.total)) == 0) { return Intl.NumberFormat('\(currentLanguage)', { style: 'percent', minimumFractionDigits: 0}).format(this.total / 100) } else { return Intl.NumberFormat('\(currentLanguage)', { style: 'percent', minimumFractionDigits: 2}).format(this.total / 100) } }"
Could anyone please help me to resolve this issue?
Thank you!