You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_territories_contained, which lists territories within a region or grouping, makes two assumptions:
a 2 letter code is always a country (e.g. DE)
a 3 digit number is always a region (e.g. 150)
The data also contains groupings like 'EU', 'EZ' (Eurozone) which have two letters. This means it's not possible to get a list of EU countries like this:
get_territories_contained
, which lists territories within a region or grouping, makes two assumptions:The data also contains groupings like 'EU', 'EZ' (Eurozone) which have two letters. This means it's not possible to get a list of EU countries like this:
It would be useful if
get_territories_contained
could return this too - perhaps by validating what keys are available in the JSON file instead.https://github.com/Automattic/wp-cldr/blob/master/data/41.0.0/supplemental/territoryContainment.json
The text was updated successfully, but these errors were encountered: