public function getTranslations($reload = false)
    {
        if ($this->translations && ! $reload) {
            return $this->translations;
        }

        collect($this->disk->allFiles($this->languageFilesPath))
            ->filter(function ($file) {
                return $this->disk->extension($file) == 'json';
            })
            ->each(function ($file) {
                $this->translations[str_replace('.json', '', $file->getFilename())]
                    = json_decode($file->getContents());
            });

        return $this->translations;
    }
public function getTranslations($reload = false)
    {
        if ($this->translations && ! $reload) {
            return $this->translations;
        }

        collect($this->disk->allFiles($this->languageFilesPath))
            ->filter(function ($file) {
                return $this->disk->extension($file) == 'json';
            })
            ->each(function ($file) {
                $this->translations[str_replace('.json', '', $file->getFilename())]
                    = json_decode($file->getContents());
            });

        return $this->translations;
    }
public function getTranslations ( $ reload = false ) { if ( $ this -> translations && ! $ reload ) { return $ this -> translations ; } collect ( $ this -> disk -> allFiles ( $ this -> languageFilesPath ) ) -> filter ( function ( $ file ) { return $ this -> disk -> extension ( $ file ) == 'json' ; } ) -> each ( function ( $ file ) { $ this -> translations [ str_replace ( '.json' , '' , $ file -> getFilename ( ) ) ] = json_decode ( $ file -> getContents ( ) ) ; } ) ; return $ this -> translations ; }
Get all the available lines.

@param bool $reload
@return array
Get all the available lines .