
ChangeNumbers is a small and easy-to-use JavaScript library which translate English numbers to Persian(Farsi) or Arabic.
See also:
How to use it:
Download and import the ChangeNumbers library into the document.
<script src="ChangeNumbers.min.js"></script>
Wrap the number into an inline element and specify the target language in the data-number-target attribute.
From : EN ,Input : 2018 , Target : EN , Result : 2018 <label data-number-target="en">2018</label> From : EN ,Input : 2018 , Target : FA , Result : ۲۰۱۸ <label data-number-target="fa">2018</label> From : EN ,Input : 2018 , Target : AR , Result : ۲۰۱۸ <label data-number-target="ar">2018</label> From : FA ,Input : ۲۰۱۸ , Target : AR , Result : ۲۰۱۸ <label data-number-target="ar">۲۰۱۸</label>






