eu-cookie-consent icon indicating copy to clipboard operation
eu-cookie-consent copied to clipboard

Cookie consent in wrong language when using update_popup()

Open tms1987 opened this issue 2 years ago • 0 comments

Hello, my page supports multi language support, primary language is German, secondary is English. When running {!! EuCookieConsent::getPopup() !!} the cookie consent is either displayed in german or english depending on the language the page is displayed. However, when I try to give the user the possiblity to add a cookie, the message always appears in german - no matter what language is selected:

@if (EuCookieConsent::canIUse('openstreetmap')==False)
{!! EuCookieConsent::getUpdatePopup() !!}
<a onClick='update_popup()'>Click here to update cookies</a>
@else
<!-- display map -->
@endif

Can you provide a solution for that problem?

tms1987 avatar Jan 24 '23 18:01 tms1987