Replies: 1 comment
-
|
You can call const cookiebot = useScript({ src: '...', 'data-lang': locale.value })
watch(locale, async () => {
cookiebot.remove()
// re-instantiate with new locale
})Closing — open an issue if you hit a specific edge case 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My use case is that I am using cookiebot, and a locale
en,deetc has to be passed with the request.Which the user switches locale in the app via nuxt i18n, I would like to be able to remove the cookiebot script and DOM nodes, then fire another request for cookiebot in the new locale.
Beta Was this translation helpful? Give feedback.
All reactions