1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to Customize the currency symbol accordingly with the language-country code?

Discussão em 'Angular' iniciado por Gurudath G, Setembro 16, 2024.

  1. Gurudath G

    Gurudath G Guest

    As I'm looking forward to a currency symbol based on the language-country code as input. But, when I give input for the country "Saudi Arabia" I'll get a result which I'm not expected where I'm expecting only the Saudi currency symbol but not everything in the Arabic language. So, if anyone knows how to customize the currency symbol using the same code as mentioned below. Please help me with this. I've mentioned code and result in the below code and images.[​IMG]

    let formated = (new Intl.NumberFormat('ar-SA', { style: 'currency', currency: 'SAR' }).format(value));


    I've expected currency symbol then normal English digits instead of Arabic digits.

    (ر.س.‏ --> this is the currency symbol for Saudi Arabia & ٦٠٠٫٠٠ --> this is number which is needed to be shown in normal English digits. Please help to show it in ---> ر.س.‏ 0.00 using above-mentioned code)

    Continue reading...

Compartilhe esta Página