Skip to content

Commit

Permalink
Fix on lang folder location error for Laravel version >= 9 (#188)
Browse files Browse the repository at this point in the history
Co-authored-by: André Azevedo <[email protected]>
  • Loading branch information
ALGAzevedo and André Azevedo authored Nov 30, 2023
1 parent 0abc390 commit bca4082
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public function register()
$langs = $app['path.base'].'/app/lang';
} elseif ($laravelMajorVersion >= 5) {
$langs = $app['path.base'].'/resources/lang';
} elseif ($laravelMajorVersion >= 9) {
$langs = $app['path.base'].'/lang';
}
$messages = $app['config']->get('localization-js.messages');
$generator = new Generators\LangJsGenerator($files, $langs, $messages);
Expand Down

1 comment on commit bca4082

@TibreFR44
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a bug. You must check "($laravelMajorVersion >= 9)" before "($laravelMajorVersion >= 5)"

Please sign in to comment.