Skip to content

Commit 2c6f890

Browse files
committed
Fix path issues
1 parent 9e570ee commit 2c6f890

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Mariuzzo/LaravelJsLocalization/LaravelJsLocalizationServiceProvider.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ public function register()
7373
$languagePath = $this->app['config']->get('localization-js')['lang_path'];
7474
if (empty($languagePath)) {
7575
if ($laravelMajorVersion === 4) {
76-
$languagePath = 'app/lang';
77-
$langs = $app['path.base'].'/app/lang';
76+
$languagePath = '/app/lang';
7877
} elseif ($laravelMajorVersion >= 5) {
79-
$languagePath = 'resources/lang';
78+
$languagePath = '/resources/lang';
8079
}
8180
}
8281
$langs = $app['path.base'].$languagePath;

0 commit comments

Comments
 (0)