I created a new library multi-platform library cal...
# feed
j
I created a new library multi-platform library called ko-iso with support for country and language codes. Might be a bit redundant but I got tired of reinventing that wheel, dealing with JVM only libraries, and patching together different things across platforms. I'd love some feedback on this. https://github.com/jillesvangurp/ko-iso
🚀 1
👍 4
K 1
r
Would be nice to also have a country name in local language.
1
j
yeah, gets a bit too large. Might be nice as a second library that depends on this. I've been thinking about using geonames for this. Main issue is that is not a small file. Also some countries like India have lots of official languages.
Another thing I'm considering is adding support for common locales and adding some common meta information to those.
b
Looks awesome! What would really boost my confidence is a test against an established library (only on the JVM target, of course), to make sure that everything behaves as expected. For example: EL is a valid country code for greece and your json data does not contain it
Also: GB/UK
j
These are not ISO 3166-1 codes. If I can get a list of these alternate codes, I might add them (if they don't conflict)
b
I am not aware of conflicts, but Eurostat uses those codes and as of now, they are valid in the context of eIDAS2 (EUDI). Too big to ignore imho
j
Thanks for pointing this out. I've added some handling for these two. I've looked but it seems that these two are the only common non standard ones. There's a new alternate code for GB/GR now. And the alpha2 lookup now succeeds for these codes. Will create a new release with this shortly.
👍 1