fingerpich / jalali-moment

Display, parse, manipulate, validate and convert jalali (Persian, Khorshidi, Shamsi) or Gregorian (Miladi) dates and times.
https://fingerpich.github.io/jalali-moment/
MIT License
435 stars 68 forks source link

Use Persian digits #77

Closed ali4heydari closed 4 years ago

ali4heydari commented 5 years ago

It would be great to have an option to use Persian digits like: ۱۳۹۸/۰۷/۰۹

jalaliMoment.local('fa',{usePersianDigit: true})

Thanks!

fingerpich commented 4 years ago

The main goal of this repository is to facilitate converting any library using moment.js to be compatible with jalali calendar system, if we generate persian digits we have to parse them too, and it would be hard to keep it update. For this you can use the following package https://www.npmjs.com/package/persian-number or use persian fonts also you can create your own fork then we will add a link to your repository.