Hello,
problem is that trans function in TranslationServiceProvider.php always has the same key
($translation = $file->getBasename('.php')) => trans($translation);
Because file name for all languages is the same, only directory names are unique for language. Like ../lang/en/auth.php ../lang/fr/auth.php
auth is always key for trans function and return value is always english(default).
------- EDIT
laravel setLocale is the problem. Sorry. Please delete this issue
Hello, problem is that trans function in TranslationServiceProvider.php always has the same key ($translation = $file->getBasename('.php')) => trans($translation);
Because file name for all languages is the same, only directory names are unique for language. Like ../lang/en/auth.php ../lang/fr/auth.php
auth is always key for trans function and return value is always english(default).
------- EDIT laravel setLocale is the problem. Sorry. Please delete this issue