Skip to content

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

Open
@Graziellah

Description

@Graziellah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions