nv-i18n icon indicating copy to clipboard operation
nv-i18n copied to clipboard

Feature request: ISO 3166-2

Open apemberton opened this issue 11 years ago • 6 comments

ISO 3166-2 defines the subdivisions of ISO 3166-1 (which defines countries): http://en.wikipedia.org/wiki/ISO_3166-2

Any chance to include 3166-2 support to access, for example, the 50 US states?

apemberton avatar Nov 01 '13 02:11 apemberton

Thank you for your request. I didn't know the existence of ISO 3166-2.

It seems worth adding ISO 3166-2 support, but it will require a bit different design pattern. In other words, it shouldn't be a simple enum, I guess. So, I need some time to consider what design is the best. Please give me time.

TakahikoKawasaki avatar Nov 01 '13 04:11 TakahikoKawasaki

I agree this would be a really useful feature as right now we all have to maintain the states/provinces ourselves.

They could be enums, but not just one enum. I imagine each Country would have it's own Subivision enum. US -> 50 Subdivisions (actually more, given territories like Puerto Rico) is one Enum definition; CA -> 13 Subdivisions.

You always navigate down from Country, never up. The reason is that many countries share the same subdivision codes, so you can't tell which. For instance, both Mexico and Canada have a 'BC' Subdivision.

mattbishop avatar Mar 28 '14 12:03 mattbishop

+1 for ISO 3166-2 support

danielyli avatar Sep 06 '16 10:09 danielyli

+1

raderio avatar Apr 26 '19 08:04 raderio

Any news about this?

msalegre avatar Aug 21 '19 08:08 msalegre

+1

qilingit avatar Sep 03 '21 13:09 qilingit