eu-cookie-consent
eu-cookie-consent copied to clipboard
Cookie consent in wrong language when using update_popup()
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?