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

158
Views
Country ISO to "in France" (with preposition) in JavaScript

Given a country ISO I can know the country name using Intl.DisplayNames API with:

const countryName = new Intl.DisplayNames([lang], { type: 'region' }).of(countryISO)
console.log(countryName) // France

However, I want to go one step further, and put the preposition in front of the country:

And depending on the country, it may be one or the other... But I don't know how this formula works... Is there any JavaScript API similar to DisplayNames that allows it?

NL:

  • FR: aux Pays-Bas
  • DE: in die Niederlande
  • IT: nei Paesi Bassi

FR:

  • FR: en France
  • DE: nach Frankreich
  • IT: in Francia

GB:

  • FR: au Royaume-uni
  • DE: ins Vereinigte Königreich
  • IT: nel Regno Unito

etc.

Thanks!

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!