Closed rudolfbruder closed 10 months ago
I found a problem and it is than in one of our lang files the translation value was set to null? Maybe you could add check in the package for that?
Also I am really interested how does this package work with php file. I could not understand it from the code. But i see files like php_sk.json getting generated but the deleted and it still somehow works. Could you please explain or set me on proper track ?
Hey @rudolfbruder thanks for reporting.
was there a translation set to null
or an entire object example:
$t('message')
return ['message' => null'];
or is it like this?
$t('parent.message')
return ['parent' => null];
Thanks for the help.
I have the same error. In my lang file was line like this:
return [
'user' => []
];
Solved and released on v2.7.5
.
Thanks.
@xiCO2k I didn't know where to ask, but I would like to know if I can use this package to export the translations to javascript and be able to use them within an app just built in Vue and your backend is a Laravel API (separated projects) and how to do that?. This package works prefect when the project is integrated in one with inertia vue (breeze or jestream), but if backend and frontend are in separated projects?
Hey @luisprmat, an export translation feature is something I'm considering adding to this package.
If you would like to contribute adding this. Go ahead
Thanks for the suggestion
Hi,
I am facing an issue in our project with generation of langs from php files. Our project started out i think on laravel 7 and as the time passed we updated it to 10 as of now.
However we still have langs in 'resources/lang' directory.
When I tried to specify this path as mentioned in docs in mix.i18n("resources/lang") my build crashes with following error:
Got any advice please? If I dont specify the path I see the lang folder beign created during the build / watcher process but as soon as it hits 100% it gets deleted.
Thank you.