Persian/Arabic/English Number Converter – ChangeNumbers

Category: Javascript | July 5, 2018
Author: BaseMax
Views Total: 1,074
Official Page: Go to website
Last Update: July 5, 2018
License: MIT

Preview:

Persian/Arabic/English Number Converter – ChangeNumbers

Description:

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>

You Might Be Interested In:


Leave a Reply