We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a3c0b commit 0b61d93Copy full SHA for 0b61d93
app/Providers/FresnsEngineServiceProvider.php
@@ -33,7 +33,13 @@ public function register()
33
$supportedLocales = CacheHelper::get($cacheKey, $cacheTags);
34
35
if (empty($supportedLocales)) {
36
- $langMenus = ConfigHelper::fresnsConfigByItemKey('language_menus') ?? [];
+ $langMenus = ConfigHelper::fresnsConfigByItemKey('language_menus') ?? [
37
+ [
38
+ 'isEnable' => true,
39
+ 'langTag' => $defaultLangTag,
40
+ 'langName' => $defaultLangTag,
41
+ ]
42
+ ];
43
44
$localeMenus = [];
45
foreach ($langMenus as $menu) {
0 commit comments