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
Comment #2
bojanz CreditAttribution: bojanz commentedPushed the initial work. Still need to clarify default locale.