rinvex / countries

Rinvex Country is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.
https://rinvex.com
MIT License
1.65k stars 206 forks source link

Countries Affected by GDPR #170

Closed simoheinonen closed 2 years ago

simoheinonen commented 3 years ago

https://www.defensorum.com/gdpr-countries-list/

choval commented 3 years ago

There's a isEuMember(), which I've used to detect if a user is from an EU country and mark accordingly for GDPR.

simoheinonen commented 3 years ago

That's not accurate enough. GDPR is also used in UK, Iceland and Norway for example which aren't EU countries.

ninjahza commented 3 years ago

Jumping on this

choval commented 3 years ago

The thing with GDPR, is that some other countries have similar laws but not GDPR specifically... For example Argentina, Brazil, Canada, Japan and many others have similar personal data handling requirements. A 'data protection' flag would be more useful.

Or you could easily just create a list with the country codes in the list you provided to check for GDPR specifically.

Omranic commented 2 years ago

Thank you for your suggestions. This is a very interesting feature that I would love to have implemented in this package.

I'll be happy to consider PRs adding that feature in this package, all PRs are welcome 😉