Closed ccec1t91077 closed 1 year ago
This whole thing is a mess. .php
translation files and .json
translation files have different behaviours, and interact with your app differently. Laravel 10 also changed the default location of translation files, and the publish path as well.
Fixed in #673
Scribe version
4.19.1
PHP version
8.2.5
Framework
Laravel
Framework version
10.12.0
Scribe config
What happened?
Localization is not working, translations always using json from
/vendor/knuckleswtf/scribe/lang/en.json
.Steps To Reproduce
create project laravel/laravel test-project
.env
composer require --dev knuckleswtf/scribe
php artisan vendor:publish --tag=scribe-translations
/lang/vendor/scribe/en.json
make some changes of defaultsphp artisan scribe:generate
/lang/vendor/scribe/en.json
to generatelang
folder insideresources
php artisan scribe:generate
/resources/lang/vendor/scribe/en.json
to generateI met #657 this week. After upgrade to 4.19.1 this issue shows up.
Seems like it won't try to load localization from the published path.
Docs