Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Fix #38
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Sep 3, 2018
1 parent ad382bf commit 11d8386
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TranslationServiceProvider.php
Expand Up @@ -49,16 +49,16 @@ protected function registerLoader()
base_path('vendor/caouecs/laravel-lang/src/'),
];

$jsonPath = base_path('vendor/caouecs/laravel-lang/json/');

if ($this->inLumen) {
$this->app['path.lang'] = base_path('vendor/laravel/lumen-framework/resources/lang');
array_push($paths, base_path('resources/lang/'));
}

$loader = new FileLoader($app['files'], $app['path.lang'], $paths);

$loader->addJsonPath($jsonPath);
if (\is_callable([$loader, 'addJsonPath'])) {
$loader->addJsonPath(base_path('vendor/caouecs/laravel-lang/json/'));
}

return $loader;
});
Expand Down

0 comments on commit 11d8386

Please sign in to comment.