zephir / kirby-cookieconsent

Cookieconsent plugin for Kirby 3
MIT License
43 stars 2 forks source link

`Call to a member function direction() on null` #4

Closed afbora closed 6 months ago

afbora commented 6 months ago

I'm getting following error on single language app:

Call to a member function direction() on null \kirby-cookieconsent\src\Configuration.php:29

Plugin version 3.0.0 Kirby version 4.1.0

TheMaaarc commented 6 months ago

Sorry about that, I completely missed the single language bug. I fixed the issue and released a new version (3.1.0).

You can now set your language in the plugin options:

'zephir.cookieconsent' => [
    'language' => [
        'locale' => 'de', // The translation to use, default is en
        'direction' => 'ltr' // Either ltr or rtl, default is ltr
    ]
]
afbora commented 6 months ago

Thank you. I already switched to custom js service, sorry 🙈 You can close the issue 👍

TheMaaarc commented 6 months ago

No worries, thanks for repporting the bug :)