function cacheLanguages() {
        $this->log("Downloading languages...");
        $count = 0;
        $languages = Config::instance()->application->apiClient()->get("application/languages", array("definition" => "true"));
        foreach ($languages as $lang) {
            $this->cache(Language::cacheKey($lang["locale"]), json_encode($lang));
            $count += 1;
        }
        $this->log("$count languages have been cached.");
        return $languages;
    }