From bca4082f06620df4088d990f11192b1f38852430 Mon Sep 17 00:00:00 2001 From: ALGAzevedo <46000644+ALGAzevedo@users.noreply.github.com> Date: Thu, 30 Nov 2023 15:42:31 +0200 Subject: [PATCH] Fix on lang folder location error for Laravel version >= 9 (#188) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: André Azevedo --- .../LaravelJsLocalizationServiceProvider.php | 2 ++ 1 file changed, 2 insertions(+) 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);