orestbida / cookieconsent

:cookie: Simple cross-browser cookie-consent plugin written in vanilla js

Home Page:https://playground.cookieconsent.orestbida.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Translations

DmytroIvantsov opened this issue · comments

Expected Behavior

I think translations must be updated dynamically when the page language changed

Current Behavior

Nuxt 3, i18n, translations are not updated dynamically when the page language is changed, even if the page's lang attribute has been changed.

Steps to reproduce

  1. Open page
  2. Change language without page reloading
  3. There are no translations in the cookie settings window

Proposed fix or additional info.

No response

Version

3.0.1

On which browser do you see the issue?

No response

The plugin is vanilla js, you need to manually call .setLanguage() as it's not aware of the changes outside, unless you reload the page: demo