Closed shalvah closed 1 year ago
I've tested localization
branch in Laravel 8 and 10 clean project, works fine. :D
composer require --dev knuckleswtf/scribe:dev-localization
php artisan vendor:publish --tag=scribe-config
php artisan scribe:generate
php artisan vendor:publish --tag="scribe-translations"
lang/scribe.php
php artisan scribe:generate
Extra
I've also tested on my current project in development, works fine, too.
Nice, thanks!
Translations should work correctly onLaravel 8,9 and 10 now.
To publish translations, run
php artisan vendor:publish --tag="scribe-translations"
. This will create the fileresources/lang/scribe.php
(orlang/scribe.php
).This may be a bit of a minor breaking change to the previous translation system—they will be ignored. I would recommend deleting any previously published Scribe translations (the
en.json
file).The new system is:
scribe::
string. That way users don't get unexpected text in their docs.