currency translation

This commit is contained in:
Yuri Kuznetsov
2019-12-12 12:21:29 +02:00
parent d5069487ae
commit 97fa72042e
3 changed files with 181 additions and 6 deletions
@@ -32,6 +32,17 @@ define('views/settings/fields/currency-list', 'views/fields/multi-enum', functio
setupOptions: function () {
this.params.options = this.getMetadata().get(['app', 'currency', 'list']) || [];
this.translatedOptions = {};
this.params.options.forEach(function (item) {
var value = item
var name = this.getLanguage().get('Currency', 'names', item);
if (name) {
value += ' - ' + name;
}
this.translatedOptions[item] = value;
}, this);
},
});