from babel.numbers import format_currency def toRupiah(money): return format_currency(money, 'IDR', locale='id_ID')