问题
I have languages for french and english. Fallback and standard is french (fr).
My folder structure:
This is the content of the login.php (english):
<?php
return [
'welcome' => 'Welcome',
'mail' => 'E-Mail address',
'password' => 'Password'
];
I am referencing the keys either using @lang() or {{ trans('') }}. Example:
<label for="email" class="col-md-4 control-label">{{ trans('admin.login.mail') }}</label>
However this gets returned as:
回答1:
When you're putting language files into subfolder, you need to specify it using slash. So, try this instead:
{{ trans('admin/login.mail') }}
来源:https://stackoverflow.com/questions/40153529/laravel-translation-not-working