Skip to content

Cookie consent in wrong language when using update_popup() #13

@tms1987

Description

@tms1987

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions