I can't find localization files for Laravel 9 with php format (not json) to add new languages to my app.
This (most popular i guess) one consists of json files only: https://github.com/Laravel-Lang/lang
I can't find localization files for Laravel 9 with php format (not json) to add new languages to my app.
This (most popular i guess) one consists of json files only: https://github.com/Laravel-Lang/lang
Laravel provides two ways to manage translation strings. First, language strings may be stored in files within the
langdirectory. Within this directory, there may be subdirectories for each language supported by the application. This is the approach Laravel uses to manage translation strings for built-in Laravel features such as validation error messages:
You could insert these PHP files or choose the 2nd method :
/lang
/en
messages.php
/es
messages.php
2nd Method :
Or, translation strings may be defined within JSON files that are placed within the lang directory. When taking this approach, each language supported by your application would have a corresponding JSON file within this directory. This approach is recommended for applications that have a large number of translatable strings:
/lang
en.json
es.json
https://github.com/Laravel-Lang/lang package with Laravel languages moved to json only translation files but i found latest release with php files: https://github.com/Laravel-Lang/lang/releases/tag/10.9.5