update currency symbols and currency symbol supports plural symbol

This commit is contained in:
MaysWind
2024-08-03 16:06:59 +08:00
parent 10dc2d1713
commit c91a56547f
4 changed files with 506 additions and 168 deletions
+4 -1
View File
@@ -286,7 +286,10 @@ export default {
return '0';
},
getDisplayCurrencyPrependAndAppendText() {
return this.$locale.getAmountPrependAndAppendText(this.settingsStore, this.userStore, this.currency);
const numericCurrentValue = this.$locale.parseAmount(this.userStore, this.currentValue);
const isPlural = numericCurrentValue !== 100 && numericCurrentValue !== -100;
return this.$locale.getAmountPrependAndAppendText(this.settingsStore, this.userStore, this.currency, isPlural);
}
}
}