diff --git a/src/Mariuzzo/LaravelJsLocalization/LaravelJsLocalizationServiceProvider.php b/src/Mariuzzo/LaravelJsLocalization/LaravelJsLocalizationServiceProvider.php index eab4548..f0255b6 100644 --- a/src/Mariuzzo/LaravelJsLocalization/LaravelJsLocalizationServiceProvider.php +++ b/src/Mariuzzo/LaravelJsLocalization/LaravelJsLocalizationServiceProvider.php @@ -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);