Fix loading front-end i18n texts of plugins

This commit is contained in:
Pig Fang 2019-07-11 11:31:30 +08:00
parent c387794e17
commit e62ad371f1
3 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class AppServiceProvider extends ServiceProvider
'site_name' => option_localized('site_name'),
'route' => request()->path(),
'extra' => [],
'i18n' => ['_' => null],
];
$event->addContent('<script>var blessing = '.json_encode($blessing).';</script>');
});

View File

@ -14,3 +14,4 @@
- Fixed renaming item in closet.
- Fixed Font Awesome of bottom of home page.
- Fixed loading front-end i18n texts of plugins.

View File

@ -14,3 +14,4 @@
- 修复不能重命名衣柜物品的问题
- 修复首页底部 Font Awesome 的问题
- 修复插件系统中加载前端国际化文本的问题