切换语言

This commit is contained in:
2025-03-20 11:32:40 +08:00
parent f3fdad93ba
commit a5713b1adf
5 changed files with 55 additions and 15 deletions
+2 -2
View File
@@ -17,9 +17,9 @@
*/
return [
// 默认语言
'locale' => 'zh_CN',
'locale' => 'en',
// 回退语言,当前语言中无法找到翻译时则尝试使用回退语言中的翻译
'fallback_locale' => ['zh_CN', 'en'],
'fallback_locale' => ['en', 'zh_CN'],
// Folder where language files are stored
'path' => base_path() . '/resource/translations',
];