Laravel-Lang/publisher

Laravel JetStream translate

MrFallen opened this issue · 6 comments

  • Lang Publisher Version: last
  • Laravel Version: last
  • PHP Version: 7.4

Description:

Hi guys. I was download Russian language for Laravel JetStream. How to accept this language?

Steps To Reproduce:

https://github.com/andrey-helldar/laravel-lang-publisher#laravel-jetstream

Hi!

  1. composer update
  2. php artisan lang:install --json ru

Next calls,
php artisan lang:update --json

It is necessary to update the dependencies because one of the dependencies - Laravel-Lang/lang (latest version is 7.0.7) recently included translation for Jetstream.

Doesn't works :(
image
image

What versions of the andrey-helldar/laravel-lang-publisher and laravel-lang/lang packages are installed?
I'm pretty sure the problem is with old packages.
Are you sure you called the composer update command?
Are the translation files installed exactly? Check if the resources/lang/ru.json file exists.
If not, run the php artisan lang:install --json ru command.

My steps:

  1. Install a fresh application (laravel new test --jet, (see))
  2. Install a andrey-helldar/laravel-lang-publisher package: composer require --dev andrey-helldar/laravel-lang-publisher
  3. Call the php artisan lang:install --json ru command
  4. Change a locale option to ru in the config/app.php file.
  5. It's all.

image

image

image

image