Skip to content

Support returning region display names with article as needed #1030

@lucacasonato

Description

@lucacasonato

When using the name of a country in a sentence, some countries need to be prefixed with an article in English:

Are you based in ${country}?

If you format NL (= Netherlands) into this sentence, you need to actually write the Netherlands, because of reasons. The same reason requires you to write US (= United States) or UK (= United Kingdom) as the United States or the United Kingdom.

Most countries do not require the prefix though, such as DE (= Germany) or IT (= Italy).

This is not just the case in English, but also in German or Dutch.

Reis jij naar Nederland?
Reis jij naar de Verenigde Staten?
Reis jij naar het Verenigd Koninkrijk?
Reis jij naar Duitsland?
Reis jij naar Italië?
Die Niederlande ist schön. / Kommt ihr aus den Niederlanden?
Die Vereinigten Staaten sind schön. / Kommt ihr aus den Vereinigten Staaten?
Das Vereinigten Königreich ist schön. / Kommt ihr aus dem Vereinigten Königreich?
Deutschland ist schön. / Kommt ihr aus Deutschland?
Italien ist schön. / Kommt ihr aus Italien?

The reason for this is that some of these country names are actually plurals, and because of that need an article when used in a sentence.

It does get even more difficult thoughm, because in some languages, the article depends on the position of the noun in the sentence (e.g in German, where the entire word and article are different in nominative vs dative for NL).

Has anyone thought about this in the past? It would be awesome if Intl.DisplayNames could handle this reasonably well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: enumComponent: Enumerations, display names

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions