Skip to content

Commit

Permalink
fix menu translation
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Sep 6, 2023
1 parent 9c8f6f3 commit 91a6383
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Services/Contracts/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ class Menu
public function __construct()
{
// decrypt
$decryptedString = \Crypt::decrypt(Cookie::get('lang'), false);
$lang = json_decode(explode('|', $decryptedString)[1]);
app()->setLocale($lang->id ?? config('app.locale'));
try {
$decryptedString = \Crypt::decrypt(Cookie::get('lang'), false);
$lang = json_decode(explode('|', $decryptedString)[1]);
app()->setLocale($lang->id ?? config('app.locale'));
}catch (\Exception $exception) {}
}


Expand Down

0 comments on commit 91a6383

Please sign in to comment.