public function getAvailableLanguageCodes()
    {
        $cache = Cache::getTransientCache();
        $cacheId = 'transifex_languagescodes_' . $this->projectSlug;
        $languageCodes = $cache->fetch($cacheId);

        if (empty($languageCodes)) {
            $apiData = $this->getApiResults('project/' . $this->projectSlug . '/languages');
            foreach ($apiData as $languageData) {
                $languageCodes[] = $languageData->language_code;
            }
            $cache->save($cacheId, $languageCodes);
        }
        return $languageCodes;
    }
public function getAvailableLanguageCodes()
    {
        $cache = Cache::getTransientCache();
        $cacheId = 'transifex_languagescodes_' . $this->projectSlug;
        $languageCodes = $cache->fetch($cacheId);

        if (empty($languageCodes)) {
            $apiData = $this->getApiResults('project/' . $this->projectSlug . '/languages');
            foreach ($apiData as $languageData) {
                $languageCodes[] = $languageData->language_code;
            }
            $cache->save($cacheId, $languageCodes);
        }
        return $languageCodes;
    }
public function getAvailableLanguageCodes ( ) { $ cache = Cache :: getTransientCache ( ) ; $ cacheId = 'transifex_languagescodes_' . $ this -> projectSlug ; $ languageCodes = $ cache -> fetch ( $ cacheId ) ; if ( empty ( $ languageCodes ) ) { $ apiData = $ this -> getApiResults ( 'project/' . $ this -> projectSlug . '/languages' ) ; foreach ( $ apiData as $ languageData ) { $ languageCodes [ ] = $ languageData -> language_code ; } $ cache -> save ( $ cacheId , $ languageCodes ) ; } return $ languageCodes ; }
Returns all language codes the transifex project is available for

@return array
@throws AuthenticationFailedException
@throws Exception
Returns all language codes the transifex project is available for