protected function getTranslations(string $file) : array
    {
        return $this->files->exists($file) ? (array) json_decode($this->files->get($file)) : [];
    }
protected function getTranslations(string $file) : array
    {
        return $this->files->exists($file) ? (array) json_decode($this->files->get($file)) : [];
    }
protected function getTranslations ( string $ file ) : array { return $ this -> files -> exists ( $ file ) ? ( array ) json_decode ( $ this -> files -> get ( $ file ) ) : [ ] ; }
Get an array containing all translations form a json file.
Get an array containing all translations form a json file .