wooorm / iso-3166

ISO 3166 (standard for country codes and codes for their subdivisions)
MIT License
79 stars 13 forks source link

Trouble retrieving English names for South African provinces #7

Open respencer opened 6 months ago

respencer commented 6 months ago

For some reason I have yet to figure out, the English names for South African provinces aren't being consistently retrieved:

https://github.com/wooorm/iso-3166/blob/7aacab6bae950d5b9811c79961b1d4928a2a5b56/2.js#L25208-L25252

For reference it should be:

  {
    code: 'ZA-EC',
    name: 'Eastern Cape',
    parent: 'ZA'
  },
  {
    code: 'ZA-FS',
    name: 'Free State',
    parent: 'ZA'
  },
  {
    code: 'ZA-GP',
    name: 'Gauteng',
    parent: 'ZA'
  },
  {
    code: 'ZA-KZN',
    name: 'Kwazulu-Natal',
    parent: 'ZA'
  },
  {
    code: 'ZA-LP',
    name: 'Limpopo',
    parent: 'ZA'
  },
  {
    code: 'ZA-MP',
    name: 'Mpumalanga',
    parent: 'ZA'
  },
  {
    code: 'ZA-NC',
    name: 'Northern Cape',
    parent: 'ZA'
  },
  {
    code: 'ZA-NW',
    name: 'North-West',
    parent: 'ZA'
  },
  {
    code: 'ZA-WC',
    name: 'Western Cape',
    parent: 'ZA'
  },
wooorm commented 6 months ago

Very possible. Wikipedia is contributor based. The data there probably looks different from other countries