Skip to content

Commit bca4082

Browse files
ALGAzevedoAndré Azevedo
and
André Azevedo
authored
Fix on lang folder location error for Laravel version >= 9 (#188)
Co-authored-by: André Azevedo <[email protected]>
1 parent 0abc390 commit bca4082

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Mariuzzo/LaravelJsLocalization/LaravelJsLocalizationServiceProvider.php

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public function register()
7474
$langs = $app['path.base'].'/app/lang';
7575
} elseif ($laravelMajorVersion >= 5) {
7676
$langs = $app['path.base'].'/resources/lang';
77+
} elseif ($laravelMajorVersion >= 9) {
78+
$langs = $app['path.base'].'/lang';
7779
}
7880
$messages = $app['config']->get('localization-js.messages');
7981
$generator = new Generators\LangJsGenerator($files, $langs, $messages);

0 commit comments

Comments
 (0)