Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

95
Views
Intl.NumberFormat for Croatia

I want to make a format in Croatian currency kuna.

This is what I want to achieve: 1.509,90 kn And this is what I get: 1.509,90 HRK

Also the best part is that Mozilla and Chromium are displaying it as it should. Chrome is not displaying it as it should.

My guess something is wrong is iso standard for Croatia. I tried with Germany and couple of other countries and it works as expected. Maybe it should say something like 'hr-HR' or something like that. Mozilla has a different engine and my guess is he see's 'hr' and understands that I want lets say 'hr-HR'.

This is my code:

console.log(new Intl.NumberFormat('hr', { style: 'currency', currency: 'HRK', currencyDisplay:'symbol' }).format("1221.5"));

How do I change the HRK to kn?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!