mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
support currency symbol
This commit is contained in:
+6
-4
@@ -76,12 +76,14 @@ Vue.prototype.$locale = {
|
||||
const allCurrencyCodes = currency.all;
|
||||
const allCurrencies = [];
|
||||
|
||||
for (let i = 0; i < allCurrencyCodes.length; i++) {
|
||||
const code = allCurrencyCodes[i];
|
||||
for (let currencyCode in allCurrencyCodes) {
|
||||
if (!Object.prototype.hasOwnProperty.call(allCurrencyCodes, currencyCode)) {
|
||||
return;
|
||||
}
|
||||
|
||||
allCurrencies.push({
|
||||
code: code,
|
||||
displayName: i18n.t(`currency.${code}`)
|
||||
code: currencyCode,
|
||||
displayName: i18n.t(`currency.${currencyCode}`)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user