We have commerceguys/intl as a library dependency, which brings the full CLDR country list and all translations.

Drupal already ships with the CLDR country list, but with no translations, so every country name needs to be manually translated.
Furthermore, the country list is always returned in the current language, which is a deal breaker for the library. The PostalLabelFormatter needs the ability
to get the country list in english AND the current language.

So, we apply the same approach as #2481531: Remove the special subdivision storage, countries are pulled from the library and cached on load in Drupal.
We gain translations and the ability to properly use PostalLabelFormatter. We lose nothing.

Comments

  • bojanz committed 9d5cd32 on 8.x-1.x
    Issue #2481533: Replace the Drupal country list
    
bojanz’s picture

Status: Active » Fixed

Pushed the initial work. Still need to clarify default locale.

  • bojanz committed 9d5cd32 on 8.x-1.x
    Issue #2481533: Replace the Drupal country list
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.