🐛 Default locale on fresh install

This commit is contained in:
MarceauKa 2020-04-28 12:09:40 +02:00
parent ff0db5296d
commit 162b38cf3d
2 changed files with 7 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class AppServiceProvider extends ServiceProvider
View::composer(
'layouts.partials.scripts',
function (\Illuminate\View\View $view) {
$locale = config('app.locale');
$locale = app('shaark')->getLocale() ?? 'en';
if ($locale !== 'en') {
$path = resource_path(sprintf('lang/%s.json', $locale));

View File

@ -1,3 +1,9 @@
# 1.2.42
## Fixed
- Default locale on fresh install ([#75](https://github.com/MarceauKa/shaark/issues/75))
# 1.2.41
## Added