src/Translator/Translator.php
public function all($locale = null){

        if(!$locale){
            $locale = $this->getLocale();
        }

        $this->load($locale);

        $translations = collect([]);
        foreach($this->languages[$locale] as $key => $arg){
            $translations->put($key, $arg['value']);
        }

        return $translations;
    }
public function all($locale = null){

        if(!$locale){
            $locale = $this->getLocale();
        }

        $this->load($locale);

        $translations = collect([]);
        foreach($this->languages[$locale] as $key => $arg){
            $translations->put($key, $arg['value']);
        }

        return $translations;
    }
public function all ( $ locale = null ) { if ( ! $ locale ) { $ locale = $ this -> getLocale ( ) ; } $ this -> load ( $ locale ) ; $ translations = collect ( [ ] ) ; foreach ( $ this -> languages [ $ locale ] as $ key => $ arg ) { $ translations -> put ( $ key , $ arg [ 'value' ] ) ; } return $ translations ; }
Get all available translations

@param null $locale

@return mixed
Get all available translations