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

With the need to translate the message you run into all kinds of issues #61

Open
codingyourlife opened this issue Oct 23, 2020 · 0 comments

Comments

@codingyourlife
Copy link

Hey!
we decided on this banner but want to translate the message inside the banner via i18next. Therefore we need to have the Cookie banner as separate component. Therefore we need to import cookies-eu-banner via import statement.
If I do that I run into issues like 'dataLayer' is not defined etc.

So steps to reproduce is simply:

import React from "react";
import CookiesEuBanner from "./cookies-eu-banner.js";

const CustomCookieConsent = () => {
	return (
		<>Please fix the errors you run into</>
	);
};
export default CustomCookieConsent;

It would be great to have such an example in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant