简介
Laravel 的本地化特性允许你在应用中轻松实现多语言支持。语言字符串默认存放在 resources/lang 目录中,该目录包含了应用支持的每种语言的子目录。
所有的语言文件都返回一个键值对数组,例如,resources/lang/en/passwords.php 文件:
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'password' => 'Passwords must be at least six characters and match the confirmation.',
'reset' => 'Your password has been reset!',
'sent' => 'We have e-mailed your password reset link!',
'token' => 'This