change NumberFormat
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a37be3e5fe
commit
36ea903333
|
@ -15,8 +15,12 @@ export default function currency($translate) {
|
|||
maximumFractionDigits: fractionSize
|
||||
};
|
||||
|
||||
let lang = $translate.use();
|
||||
if (lang == 'es')
|
||||
lang = 'de';
|
||||
|
||||
if (typeof input == 'number') {
|
||||
return new Intl.NumberFormat($translate.use(), options)
|
||||
return new Intl.NumberFormat(lang, options)
|
||||
.format(input);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue