square-flags icon indicating copy to clipboard operation
square-flags copied to clipboard

Incomplete ISO 3166-1 Flag Conformance

Open zenfty opened this issue 1 year ago • 1 comments

I've noticed that this repository under- (and over-) conforms to the ISO 3166-1 alpha-2 standard.

Countries like Yugoslavia (YU), and the Soviet Union (SU) are present, which overconform ISO 3166-1 due to their nonexistence and lead into ISO 3166-3.

Additionally, the following flags aren't present that exist as part of ISO 3166-1: • BV: Bouvet Island • EH: Western Sahara • GS: South Georgia and the South Sandwich Islands • HM: Heard Island and McDonald Islands • IO: British Indian Ocean Territory • SJ: Svalbard and Jan Mayen • UM: United States Minor Outlying Islands

Please add these flags. Thanks heaps!!

zenfty avatar Dec 24 '24 16:12 zenfty

@vapidinfinity I’ve just spent some time looking into this, and I believe all of the flags you mentioned are already supported:

Code Name Flag
BV Bouvet Island Bouvet Island
EH Western Sahara Western Sahara
GS South Georgia and the South Sandwich Islands South Georgia and the South Sandwich Islands
HM Heard Island and McDonald Islands Heard Island and McDonald Islands
IO British Indian Ocean Territory British Indian Ocean Territory
SJ Svalbard and Jan Mayen Svalbard and Jan Mayen
UM United States Minor Outlying Islands United States Minor Outlying Islands

The important caveat with these flags is that until recently these were handled as symbolic links within this repository, where flags sharing the same design all pointed to one ‘main’ asset for each code; I have recently changed this to explicitly export discrete SVG files for every supported flag (even if the SVG is duplicated) as it was causing problems with the npm package publishing (since symlinks aren’t a thing in npm packages).

The Figma template also (currently) doesn’t publish main components named for each of these aliases, and so I will probably want to revisit that to ensure the repository has parity with the design tools.

kapowaz avatar May 22 '25 09:05 kapowaz

Closing since these flags are supported; if you have additional comments, please open a new issue.

kapowaz avatar Jun 06 '25 12:06 kapowaz