Skip to content

Adjust Persian locale numbers (fa_IR) #446

@5j9

Description

@5j9

Currently:

>>> from babel import numbers
>>> numbers.format_number(1234567890.123456790, 'fa_IR')
'1,234,567,890.123'

What I was expecting:

>>> from babel import numbers
>>> numbers.format_number(1234567890.123456790, 'fa_IR')
'۱٬۲۳۴٬۵۶۷٬۸۹۰٫۱۲۳'

Also the current currency symbol is "﷼" and the "%" sign is "٪".

I'm using Python 3.5.2 64 bit on a Windows 10 machine.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions