ruby - Best way to handle foreign number in Rails? -
i wonder something. have rails app had been translated in 30/40 languages including exotic languages. wonder what's best way handle numbers , number translation.
for example, have in english, string 3 items
, in persian or arabic, become ٣ سلع
. unfortunately, getting 3 سلع
using i18n
gem.
i using file locale:
https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/ar.yml
the locale correclty set ar
output 3 in place of ٣ (the arabic/persian character)
any ideas?
Comments
Post a Comment