question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not working with persian and arabic numbers

See original GitHub issue

thanks 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:closed
  • Created 3 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dm4t2commented, Apr 9, 2020

Support for arabic numbers has been added in Release 1.18.0 🎉

You can test it on the playground with locale ar-SA and currency SAR.

0reactions
MmKargarcommented, Apr 13, 2020

@dm4t2 Oh right , thanks Alot.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found