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

ConsentLanguage seems to work randomly. Languages change when refresh page #439

Open
Graziellah opened this issue Feb 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Graziellah
Copy link

Graziellah commented Feb 14, 2024

Version
1.5.10

Module (core, cmpapi, cli, stub, or testing)
core

Describe with reproduction steps – What is the expected behaviour?

Actual behaviour
1 - Set your browser to French
2 - Go to https://www.dailymotion.com/legal/consent#partner-purposes
You can see that all the page is in French except for the purposes name, description and illustrations. You might need to refresh your browser several times to reproduce the issue.

Expected behaviour
1 - Set your browser to French
2 - Go to https://www.dailymotion.com/legal/consent#partner-purposes
Everything should be in French.

Here what I did to set the consentLanguage key.

      const consentLang = lang === 'fr' ? 'fr' : 'en'
      await gvl.changeLanguage(consentLang)
      tcModelNew.consentLanguage = consentLang

When I checked what is inside the TcModel object, the consentLanguage key is set to the fr value, but the received strings are in English.

Screenshot 2024-02-14 at 10 56 41

Has anyone ever encountered this problem?
Do I have to change the way to do it?

Thank you

@Graziellah Graziellah added the bug Something isn't working label Feb 14, 2024
@ktrieu
Copy link

ktrieu commented Mar 19, 2024

I'm seeing the same thing - changeLanguage only seems to work once in several refreshes, and I've been unable to determine why, or what's different about the cases where it does work.

@HeinzBaumann
Copy link
Collaborator

@Graziellah @ktrieu You may have to all gvl.emptyLanguageCache(), to clear that language cache before you load the new language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants