public function getAvailableLanguages()
    {
        $languages = [];

        $paths = $this->fileSystem->getDirectories($this->getLanguagesPath());

        foreach ($paths as $path) {
            $languages[] = substr($path, strlen($this->getLanguagesPath()) + 1);
        }

        return $languages;
    }
public function getAvailableLanguages()
    {
        $languages = [];

        $paths = $this->fileSystem->getDirectories($this->getLanguagesPath());

        foreach ($paths as $path) {
            $languages[] = substr($path, strlen($this->getLanguagesPath()) + 1);
        }

        return $languages;
    }
public function getAvailableLanguages ( ) { $ languages = [ ] ; $ paths = $ this -> fileSystem -> getDirectories ( $ this -> getLanguagesPath ( ) ) ; foreach ( $ paths as $ path ) { $ languages [ ] = substr ( $ path , strlen ( $ this -> getLanguagesPath ( ) ) + 1 ) ; } return $ languages ; }
Return the list of available languages.

@return array
Return the list of available languages .