diff --git a/src/Translation/Reader.php b/src/Translation/Reader.php index e5d90e4..8a78967 100644 --- a/src/Translation/Reader.php +++ b/src/Translation/Reader.php @@ -157,7 +157,7 @@ private function loadTranslationsInDirectory($directory, $locale, $namespace) */ private function loadTranslations($locale, $group, $namespace, $file) { - if ($this->translationSheet->isExtraSheet()) { + if (pathinfo($file, PATHINFO_EXTENSION) === 'json') { $translations = Arr::dot(json_decode(file_get_contents($file), true)); } else { $translations = Arr::dot($this->app['translator']->getLoader()->load($locale, $group, $namespace));