Laravel-Lang/publisher

When installing a language laravel breeze is not detected

luisprmat opened this issue · 4 comments

  • 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, then npm 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 in config/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.

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.

One of the keys is in the fortify project.

I will prepare and submit a PR to add a file for the laravel/breeze project in laravel-lang/lang and implement support for this file in this package.

image

PR in this project: #116
Wait for Laravel-Lang/lang#1763

@luisprmat, as a workaround, added detection of the installed Breeze package and copying keys from jetstream and fortify.

Released in v10.0.2