not working with persian and arabic numbers
See original GitHub issuethanks for awesome package.
i’m trying to use with persian and arabic numbers , but its not accept the numbers:
۰ , ۱ , ۲ , ۳ , ۴ , ۵ , ۶ , ۷ , ۸ , ۹
i try to convert it to english numebrs in watch section :
...
watch: {
amount(){
return fx.toEnglishNumber(this.amount);
}
}
...
but its not working either . this is all my codes : html:
<input class="form-control" name="amount" v-currency="{ currency: currency , precision:0 }" v-model="amount">
javascript:
const app = new Vue({
el: '#app',
data: {
amount: 20000,
currencySymbol: ' تومان',
position: 'suffix'
},
computed: {
currency() {
return { [this.position]: this.currencySymbol }
}
},
watch: {
amount(){
return fx.toEnglishNumber(this.amount);
}
}
});
the toEnglishNumber
Properly convert to english number .
what do you suggest?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
BUG: Persian numeral characters are replaced by Arabic ...
When using Persian/Farsi numerals in Essential graphics or expressions, the Persian numerals are replaced by Arabic numerals (4, 5 and 6 are ...
Read more >persian and arabic number Problems - Autodesk Forums
hello please help me. why numbers of persian and arabic fonts are backward in autocad? for example when i write 5 it convert...
Read more >How can I view Arabic/Persian numbers in a HTML page with ...
It is very simple to view Arabic/Persian numbers in a HTML page. I solved the same problem by changing the font name,. In...
Read more >Why are Arabic numerals 'Arabic', if it was founded by ... - Quora
They were founded in India, not Persia. We call them Arabic numerals because the Arabs adopted and adapted them from India and they...
Read more >showing arabic and persian number like ١ ٩٠ [#619198] - Drupal
I'm afraid no one is translating numbers. Drupal itself does not, and Format Number module only deals with decimal point and thousands ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Support for arabic numbers has been added in Release 1.18.0 🎉
You can test it on the playground with locale
ar-SA
and currencySAR
.@dm4t2 Oh right , thanks Alot.