hustcc / timeago.js

:clock8: :hourglass: timeago.js is a tiny(2.0 kb) library used to format date with `*** time ago` statement.
https://timeago.org
MIT License
5.32k stars 410 forks source link

Change regular numbers to standard persian numbers in Farsi locale #177

Closed sky93 closed 5 years ago

sky93 commented 5 years ago

In standard persian language we don't use regular numbers like 1, 2, 3, 4, 5, 6, 7, 8, 9 and 0. Instead we have ۱, ۲, ۳, ۴, ۵, ۶, ۷, ۸, ۹ and ۰. So I wrote a little and simple function to change regular numbers to persian numbers.

I also changed the word "الآن" to "حالا" because it's more popular to use "حالا" rather than "الآن".

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 429


Totals Coverage Status
Change from base Build 425: 0.8%
Covered Lines: 121
Relevant Lines: 244

💛 - Coveralls
sky93 commented 5 years ago

What should I do to make coverage successful?

hustcc commented 5 years ago

add the testease for fa.js, just like en.js or other language.

thanks