设置语言应该用"zh-CN"还是"zh_CN"?
文章中的示例:
'locale' => 'zh-CN',
是不是应该为:
'locale' => 'zh_CN',
查了以下官方文档,有以下说明:
For languages that differ by territory, you should name the language directories according to the ISO 15897. For example, “en_GB” should be used for British English rather than “en-gb”.
同理,对于中文,是不是应该用 zh_CN
,而不是 zh-CN
呐?
推荐文章: