Cookie Consent Language #5613
-
Is it possible to change the language of the cookie consent banner to the website's main language? #433 already asked if it was possible to change the the text inside the pop-up, but that question seems to aim at modifying the matter of what's being said there. I don't intend to change the content per se of what is being said, but to display the translation from the default English text to the language set in the yml file. As the Cookie pop-up has, when clicked on "Change my preferences", a box for language selection close to the upper right corner, it was expected to have an automatic translation according to what was defined in the yml, as it is to other predefined texts. I don't know if this resource has already been implemented or if I'm doing something wrong. Minimal working example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I don't think we currently allow to change the language and the built in feature uses the default language which is English. @dragonstyle do you think it is just a matter of configuration ? It seems the js file we are bundling has different language, so it could be only a matter of supporting the configuration quarto-cli/src/project/types/website/website-analytics.ts Lines 312 to 335 in cae5cb4 @vfacta cookie consent tooling are using JS script and you can also probably use your own by adding some includes to HTML header to use the library of your choice for cookie consent. Just sharing as a workaround. |
Beta Was this translation helpful? Give feedback.
It'll be available in our next pre-release build later this AM! (179078b)