change NumberFormat
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-06-09 15:10:53 +02:00
parent a37be3e5fe
commit 36ea903333
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}