Laravel 5.1 改成中文語言

好吧,其實用Laravel有一段時間了。一直也沒有注意「中文」這個問題,直到作登錄註冊提示信息在想到更改。php

環境是Laravel 5.1 git

語言包地址:https://github.com/caouecs/Laravel-lang/tree/master/zh-CNgithub

1.將語言包文件放到resources/lang/zh_CN文件夾下app

2.更改config/app.php裏面的'locale' => 'en',變爲'locale' => 'zh_CN',spa

如圖:code

db8fbe5394de66ce053e1d6b4b66c910.png

如今提示就是中文了。
原文:http://note.mango.im/article/27blog

相關文章
相關標籤/搜索