diff --git a/.env.example b/.env.example index bf1aeac6..855f8816 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,6 @@ APP_DEBUG=false APP_ENV=production +APP_FALLBACK_LOCALE= ASSET_ENV=production ASSET_URL= diff --git a/config/app.php b/config/app.php index 0f009f29..a49e8d83 100644 --- a/config/app.php +++ b/config/app.php @@ -116,7 +116,7 @@ return [ | */ - 'fallback_locale' => 'en', + 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), /* |-------------------------------------------------------------------------- diff --git a/resources/misc/changelogs/en/5.0.0.md b/resources/misc/changelogs/en/5.0.0.md index 92837fe0..7624db07 100644 --- a/resources/misc/changelogs/en/5.0.0.md +++ b/resources/misc/changelogs/en/5.0.0.md @@ -28,6 +28,7 @@ - Added support of installing plugin by submitting remote URL. - Added support of clicking on the uploader's nickname in skin library to view other uploads of that user. - Added `php artisan update` command for updating by CLI. +- Allowed to customize fallback locale. ## Changed diff --git a/resources/misc/changelogs/zh_CN/5.0.0.md b/resources/misc/changelogs/zh_CN/5.0.0.md index 89d884dd..fa6ef15c 100644 --- a/resources/misc/changelogs/zh_CN/5.0.0.md +++ b/resources/misc/changelogs/zh_CN/5.0.0.md @@ -28,6 +28,7 @@ - 可通过提交 URL 来安装插件 - 皮肤库中可通过点击上传者昵称来查看该用户的其它上传 - 增加 `php artisan update` 命令以便通过命令行进行升级数据库 +- 支持自定义 fallback locale ## 调整