0

In some languages a country name can have a definite article, like for example German and I saw here, that some of the places in English as well.

So my question would (an I'm not sure whether it's possible or not) whether JavaScript's built-in Intl package would have a functionality to display country names with a definite article by providing an option and what option might it be? (I've searched a lot, but unfortunately couldn't find anything)

orustammanapov
  • 1,792
  • 5
  • 25
  • 44

1 Answers1

2

Seems the answer is no.

There are no article country names in JS

Otherwise we would see The Netherlands and The Falkland Islands

const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' });
console.log(regionNamesInEnglish.of('NL'));
console.log(regionNamesInEnglish.of('FK'));

There are not that many anyway

https://www.engvid.com/english-resource/the-with-country-names-lakes-rivers/

mplungjan
  • 169,008
  • 28
  • 173
  • 236