Skip to content

Commit

Permalink
Merge branch 'pwd-fogotten' of github.com:code16/sharp into pwd-fogotten
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine committed Oct 13, 2023
2 parents cfe7d67 + 4486547 commit 869ba63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Middleware/HandleInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function share(Request $request)
...parent::share($request),
'sharpVersion' => sharp_version(),
'locale' => app()->getLocale(),
'translations' => Cache::rememberForever('sharp.translations.'.sharp_version(), function() {
'translations' => Cache::rememberForever('sharp.translations.'.sharp_version(), function () {
return collect([
'sharp::action_bar',
'sharp::dashboard',
Expand All @@ -37,7 +37,7 @@ public function share(Request $request)
])
->map(function ($group) {
return collect(__($group, [], app()->getFallbackLocale()))
->mapWithKeys(fn($value, $key) => ["$group.$key" => __("$group.$key")]);
->mapWithKeys(fn ($value, $key) => ["$group.$key" => __("$group.$key")]);
})
->collapse()
->toArray();
Expand Down

0 comments on commit 869ba63

Please sign in to comment.