|
|
@@ -7,7 +7,7 @@ return [
|
|
|
// 默认语言
|
|
|
'default_lang' => env('lang.default_lang', 'en'),
|
|
|
// 允许的语言列表
|
|
|
- 'allow_lang_list' => ['zh','zh-tw','en','pt','ja','ko','th','id','vi','pt-br','hi','en-ph','en-in','tl'],
|
|
|
+ 'allow_lang_list' => ['zh','zh-tw','en','jp','ar','fr','de','es','it','id','th','tr','vi','ko'],
|
|
|
// 多语言自动侦测变量名
|
|
|
'detect_var' => 'lang',
|
|
|
// 是否使用Cookie记录
|
|
|
@@ -19,50 +19,50 @@ return [
|
|
|
'zh' => [
|
|
|
app()->getBasePath() . 'lang/zh.php',
|
|
|
],
|
|
|
+ 'zh-cn' => [
|
|
|
+ app()->getBasePath() . 'lang/zh_cn.php',
|
|
|
+ ],
|
|
|
'zh-tw' => [
|
|
|
app()->getBasePath() . 'lang/zh-tw.php',
|
|
|
],
|
|
|
+ 'en-us' => [
|
|
|
+ app()->getBasePath() . 'lang/en_us.php',
|
|
|
+ ],
|
|
|
'en' => [
|
|
|
app()->getBasePath() . 'lang/en.php',
|
|
|
],
|
|
|
- 'pt' => [
|
|
|
- app()->getBasePath() . 'lang/pt.php',
|
|
|
- ],
|
|
|
- 'ja' => [
|
|
|
- app()->getBasePath() . 'lang/ja.php',
|
|
|
+ 'jp' => [
|
|
|
+ app()->getBasePath() . 'lang/jp.php',
|
|
|
],
|
|
|
- 'ko' => [
|
|
|
- app()->getBasePath() . 'lang/ko.php',
|
|
|
+ 'ar' => [
|
|
|
+ app()->getBasePath() . 'lang/ar.php',
|
|
|
],
|
|
|
- 'th' => [
|
|
|
- app()->getBasePath() . 'lang/th.php',
|
|
|
- ],
|
|
|
- 'id' => [
|
|
|
- app()->getBasePath() . 'lang/id.php',
|
|
|
+ 'fr' => [
|
|
|
+ app()->getBasePath() . 'lang/fr.php',
|
|
|
],
|
|
|
- 'vi' => [
|
|
|
- app()->getBasePath() . 'lang/vi.php',
|
|
|
+ 'de' => [
|
|
|
+ app()->getBasePath() . 'lang/de.php',
|
|
|
],
|
|
|
- 'pt-br' => [
|
|
|
- app()->getBasePath() . 'lang/pt-br.php',
|
|
|
+ 'es' => [
|
|
|
+ app()->getBasePath() . 'lang/es.php',
|
|
|
],
|
|
|
- 'hi' => [
|
|
|
- app()->getBasePath() . 'lang/hi.php',
|
|
|
+ 'it' => [
|
|
|
+ app()->getBasePath() . 'lang/it.php',
|
|
|
],
|
|
|
- 'en-ph' => [
|
|
|
- app()->getBasePath() . 'lang/en-ph.php',
|
|
|
+ 'id' => [
|
|
|
+ app()->getBasePath() . 'lang/id.php',
|
|
|
],
|
|
|
- 'en-in' => [
|
|
|
- app()->getBasePath() . 'lang/en-in.php',
|
|
|
+ 'th' => [
|
|
|
+ app()->getBasePath() . 'lang/th.php',
|
|
|
],
|
|
|
- 'tl' => [
|
|
|
- app()->getBasePath() . 'lang/tl.php',
|
|
|
+ 'tr' => [
|
|
|
+ app()->getBasePath() . 'lang/tr.php',
|
|
|
],
|
|
|
- 'zh-cn' => [
|
|
|
- app()->getBasePath() . 'lang/zh_cn.php',
|
|
|
+ 'vi' => [
|
|
|
+ app()->getBasePath() . 'lang/vi.php',
|
|
|
],
|
|
|
- 'en-us' => [
|
|
|
- app()->getBasePath() . 'lang/en_us.php',
|
|
|
+ 'ko' => [
|
|
|
+ app()->getBasePath() . 'lang/ko.php',
|
|
|
],
|
|
|
],
|
|
|
// Accept-Language转义为对应语言包名称
|