When installing a language laravel breeze is not detected
luisprmat opened this issue · 4 comments
luisprmat commented
- Lang Publisher Version: 10.0.1
- Laravel Version: 8.43.0
- PHP Version: 8.0.3
Description:
This program don't translate laravel breeze keys.
If i want use laravel breeze instead laravel jetstream (with fortify), the keys aren't translated
Steps To Reproduce:
- Install a new laravel project
laravel new my-project
cd my-project
- Install laravel breeze
composer require laravel/breeze --dev
- run breeze command
php artisan breeze:install
, thennpm install
,npm run dev
,php artisan migrate
. - install lang-publisher
composer require andrey-helldar/laravel-lang-publisher --dev
- Set some language, for example spanish
php artisan lang:add es
- Set locale to
es
inconfig/app.php
- Go to route
register
for example (This view is not translate)
i guess laravel breeze uses translations from laravel jestream and that's the reason why it doesn't work.
andrey-helldar commented
I will check shortly what translations it uses and either add its definition to jetstream files (or other product) or send a PR to the laravel-lang/lang
repository.
andrey-helldar commented
andrey-helldar commented
PR in this project: #116
Wait for Laravel-Lang/lang#1763
andrey-helldar commented
@luisprmat, as a workaround, added detection of the installed Breeze package and copying keys from jetstream and fortify.
Released in v10.0.2