private function loadLocaleFiles($path)
    {
        $files = [];

        foreach ($this->filesystem->allFiles($path) as $file) {
            /** @var \Symfony\Component\Finder\SplFileInfo $file */
            $key = str_replace(
                ['.php', DS], ['', '.'], $file->getRelativePathname()
            );

            $files[$key] = [
                'path'    => $file->getRealPath(),
                'content' => $this->filesystem->getRequire($file),
            ];
        }

        return $files;
    }
private function loadLocaleFiles($path)
    {
        $files = [];

        foreach ($this->filesystem->allFiles($path) as $file) {
            /** @var \Symfony\Component\Finder\SplFileInfo $file */
            $key = str_replace(
                ['.php', DS], ['', '.'], $file->getRelativePathname()
            );

            $files[$key] = [
                'path'    => $file->getRealPath(),
                'content' => $this->filesystem->getRequire($file),
            ];
        }

        return $files;
    }
private function loadLocaleFiles ( $ path ) { $ files = [ ] ; foreach ( $ this -> filesystem -> allFiles ( $ path ) as $ file ) { /** @var \Symfony\Component\Finder\SplFileInfo $file */ $ key = str_replace ( [ '.php' , DS ] , [ '' , '.' ] , $ file -> getRelativePathname ( ) ) ; $ files [ $ key ] = [ 'path' => $ file -> getRealPath ( ) , 'content' => $ this -> filesystem -> getRequire ( $ file ) , ] ; } return $ files ; }
Load the locale translation files.

@param  string  $path

@return array
Load the locale translation files .