File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function boot()
61
61
$ this ->app ->config ->set ('app.url ' , $ appDomain );
62
62
}
63
63
64
- if ($ appLocale = $ this ->app ->config ->get ('setting.app.locale ' )) {
64
+ if ($ appLocale = $ this ->app ->config ->get ('setting.app_locale ' )) {
65
65
$ this ->app ->config ->set ('app.locale ' , $ appLocale );
66
66
$ this ->app ->translator ->setLocale ($ appLocale );
67
67
}
Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ public function __construct(Repository $config)
55
55
*/
56
56
public function handle (Request $ request , Closure $ next )
57
57
{
58
- // Early exit optimization.
59
- if (!$ this ->config ->get ('setting.automatic_localization ' )) {
58
+ if (!(bool ) $ this ->config ->get ('setting.automatic_localization ' )) {
60
59
return $ next ($ request );
61
60
}
62
61
Original file line number Diff line number Diff line change 23
23
24
24
/*
25
25
|--------------------------------------------------------------------------
26
- | Enable subscribers.
26
+ | Enable subscribers
27
27
|--------------------------------------------------------------------------
28
28
|
29
29
| Whether to allow people to subscribe to the status page.
30
30
|
31
31
*/
32
32
33
33
'enable_subscribers ' => true ,
34
+
35
+ /*
36
+ |--------------------------------------------------------------------------
37
+ | Automatic Localization
38
+ |--------------------------------------------------------------------------
39
+ |
40
+ | Whether to automatically localize the status to the visitors default
41
+ | browser language settings.
42
+ |
43
+ */
44
+
45
+ 'automatic_localization ' => false ,
34
46
];
You can’t perform that action at this time.
0 commit comments