I'm using django and I realized that intcomma
template tag not working in special languages!
When the locale
is en
it works fine, but when I want to use persian language (locale fa
) nothing really happens and django doesn't humanize the number
The tag does not know how to format numbers for the Persian language and leaves them unchanged. Try to use tag like this
{{ value|intcomma:False }}
The first argument of intcomma
is use_l10n
. Passing False
to it force tag to use default behavior.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With