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

Cookie Consent Language #5624

Closed
dragonstyle opened this issue May 22, 2023 Discussed in #5613 · 0 comments
Closed

Cookie Consent Language #5624

dragonstyle opened this issue May 22, 2023 Discussed in #5613 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dragonstyle
Copy link
Collaborator

Discussed in #5613

Originally posted by vfacta May 19, 2023
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:

  • _quarto.yml
project:
  type: website

lang: pt

website:
  
  title: Untitled

  cookie-consent: true

format:
  html: default
  • index.qmd
---
title: "Lorem Cookie"
---

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@dragonstyle dragonstyle self-assigned this May 22, 2023
@dragonstyle dragonstyle added this to the v1.4 milestone May 22, 2023
@mcanouil mcanouil added the bug Something isn't working label Jun 10, 2024
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

2 participants