vue-tafqeet
v2.0.0
Published
Tafqeet means converting numbers , times , months to Arabic characters, and this code converts any number from 0 to 99 trillion to Arabic characters. Tafqeet is often used in financial transactions to explain numbers in letters to prevent counterfeiting.
Downloads
4
Readme
Vue-Tafqeet
Tafqeet means converting numbers , times , months to Arabic characters, and this code converts any number from 0 to 99 trillion to Arabic characters. Tafqeet is often used in financial transactions to explain numbers in letters to prevent counterfeiting.
Install Vue-Tafqeet
npm i vue-taqfeet --save
and in main.js add
import Taqfeet from 'vue-taqfeet'
Vue.use(Tafqeet)
Usage
for converting any number to arabic words :
this.$tafqeet.convert(2500);
//ألفان وخمسمائة
for converting time :
for 12 time formt
this.$tafqeet.convertTime('10:10AM' , 12)
// العاشرة و عشر دقائق صباحاً
for 24 time formt
this.$tafqeet.convertTime('24:00' , 24)
// ألثانية عشر منتصف ألليل
for converting months
this.$tafqeet.convertMonth('2')
// ألثانية عشر منتصف ألليل