fix: forNumber use location
This commit is contained in:
parent
d09ec9f469
commit
7476928fb9
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ def formatDate(dt=None, type='date', variant='medium', lang='de'):
|
|||
|
||||
def formatNumber(num, type='decimal', lang='de'):
|
||||
loc = locales.getLocale(lang)
|
||||
fmt = de.numbers.getFormatter(type)
|
||||
fmt = loc.numbers.getFormatter(type)
|
||||
return fmt.format(num)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue