pressidium / pressidium-cookie-consent

🍪 Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.
https://wordpress.org/plugins/pressidium-cookie-consent/
GNU General Public License v2.0
43 stars 3 forks source link

Language detection / document - polish language #61

Open Nikodemsky opened 3 months ago

Nikodemsky commented 3 months ago

It's regarding thing i have mentioned in forums: https://wordpress.org/support/topic/language-detection-5/

It detects en-GB, de-DE properly, if checked from dropdown - but the issue is that for example polish language does not have any other options like those above and is not detected - probably, because translation plugins like WPML and Polylang(just checked on both) is using "pl-PL" and not only "pl"(like the value from option in dropdown) and core Wordpress itself too btw.

Changing <html lang> is not always possibile and by semantics not really recommended.

Here you can check full list of locales codes: https://gist.github.com/danielbachhuber/14af08c5faac07d5c0c182eb66b19b3e

or here, more officially: https://translate.wordpress.org/

Also by those you can see that wordpress itself is not really using "en" as locale code anywhere, so it might be good idea to switch to "en-GB" for default locale.

Hope it's doable!