Closed Headpetrol closed 9 months ago
Hi @Headpetrol,
I presume you checked if the project's language configuration is set to sv
at the time Cookie configurations are defined ? Can you dd()
the current locale just before the cookie consent definitions ? In some cases the ServiceProvider loads before the locales are set correctly, in which case you should defer them at a later moment in the request's lifecycle.
Also, do not hesitate to open a PR with the Swedish translations. Thanks !
Hi @Headpetrol,
I presume you checked if the project's language configuration is set to
sv
at the time Cookie configurations are defined ? Can youdd()
the current locale just before the cookie consent definitions ? In some cases the ServiceProvider loads before the locales are set correctly, in which case you should defer them at a later moment in the request's lifecycle.Also, do not hesitate to open a PR with the Swedish translations. Thanks !
Hi @toonvandenbos I still can't find the problem. My page is multilingual and it is in english, german and Swedish and the banner works fine with English and German but when I switch to Swedish it doesn't.
I am new to GitHub so how can I open a PR.
@toonvandenbos I found the problem why my translations translations didn't work. I had my translation file inside resources and as soon as I moved them to root folder the cookies.php translations started to work.
I have just duplicated the folder the de folder and renamed it to sv for Swedish. I have translated the strings ` <?php return [ 'title' => 'Vi använder cookies', 'intro' => 'Denna webbplats använder cookies för att förbättra den övergripande användarupplevelsen.', 'link' => 'Ta en titt på vår Cookies-policy för mer information.',
but it doesn't work, I get cookieConsent::cookies.title instead of Vi använder cookies. I need help solving this as quickly as possible as my project is due to launch this week.