Skip to content

[5.x]: Country Name for NL missing the #17910

@sander-lameco

Description

@sander-lameco

What happened?

Description

When retrieving the Country Name using one of these methods:

{{ craft.app.getAddresses().countryRepository.get(address.countryCode).name }}
{% set storeCountries = craft.commerce.getStores().getCurrentStore().getCountriesList() %}

While on an english website, for NL it returns the name Netherlands instead of The Netherlands.

An article about the proper writing can be found here: https://www.jurisfluence.nl/en/netherlands/

I'm not sure if this can be fixed or is something we have to check in the code and depending on the locale and country code add the the ourselves at various places.

Steps to reproduce

  1. Have an address in the Netherlands
  2. Return the country name from the address.

Craft CMS version

5.8.17

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions