I have a multilingual website (English, Azerbaijani, and French) that I am developing with Laravel. I translated its static parts with JSON files (en.json
, az.json
, fr.json
), but how can I access the translation resources (validation.php
, auth.php
, pagination.php
, and password.php
) of Azerbaijani and French or even any other language?
Just create its folder in lang directory. for example lang/fr/auth.php and translate it.
You can use this package: https://github.com/Laravel-Lang/lang