Open cawecoy opened 10 months ago
It actually translated the files, but it added the translations to lang\cs\cookieConsentcookies.php
, lang\de\cookieConsentcookies.php
, and so on.
It should've added translations to lang\vendor\cookieConsent\cs\cookies.php
, lang\vendor\cookieConsent\de\cookies.php
and so on.
So the real issue is that the outupt file is saved on the wrong directory and has a buggy filename when translating vendor package's language files.
I can't comment on the location of the translation files, but re your first problem - I had the same issue and it seems to happen when translation strings in the original file are empty! It doesn't check for that. Just remove those translations or give them a value.
eg
"heading_disclaimer" => "", <--- throws error
make it
"heading_disclaimer" => "This is a disclaimer!",
or remove it
HI, great package, thanks for the awesome work!
I am trying to translate whitecube/laravel-cookie-consent lang files, but I've got the error:
I need these languages:
pl,cs,de,en,fr,it,nl
. The main language ispl
(Polish).The
whitecube/laravel-cookie-consent
package already have translations forde,en,fr,it,nl
and I already have thepl
translations. Also, I've added a few new lines to the package's Polish language file. Then I need to translate these new Polish lines to all the other languages, and I need to addcs
andit
to thewhitecube/laravel-cookie-consent
package language files.lang\vendor\cookieConsent\pl\cookies.php
:All data from the terminal:
How can I solve this issue?