Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CookieConsent.setLanguage not working #608

Closed
jackdeguest opened this issue Dec 15, 2023 · 2 comments
Closed

[Bug]: CookieConsent.setLanguage not working #608

jackdeguest opened this issue Dec 15, 2023 · 2 comments

Comments

@jackdeguest
Copy link

Expected Behavior

I expect the cookies consent preference to be using the language specified in argument to CookieConsent.setLanguage, such as: CookieConsent.setLanguage("en")

Current Behavior

Currently, calling CookieConsent.setLanguage has no effect on the language of the cookies settings pane, or the notification pane.

Steps to reproduce

  1. Ensure your browser language is in another language than en-GB
  2. Execute CookieConsent.setLanguage("en"); CookieConsent.showPreferences();
  3. The settings pane will still be displayed in whatever is your web browser preferred language and not the one specified with setLanguage

Proposed fix or additional info.

No response

Version

v3.0.0-rc.17

On which browser do you see the issue?

Firefox

@jackdeguest jackdeguest added the bug Something isn't working label Dec 15, 2023
@github-actions github-actions bot added the triage yet to be reviewed label Dec 15, 2023
@orestbida orestbida removed the triage yet to be reviewed label Dec 15, 2023
@orestbida
Copy link
Owner

Just like #607, this also works fine on my end. Please provide a demo with the issue.

@jackdeguest
Copy link
Author

I could pinpoint the source of the error here as well, and it was my mistake. I was declaring the language files en-GB, fr-FR and ja-JP, but I was calling CookieConsent.setLanguage('ja',true);

You can close this issue.

@orestbida orestbida removed the bug Something isn't working label Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants