public function publish($language)
    {
        $translations = $this->getTranslationGroups($language->translations);
        foreach ($translations as $area => $groups) {
            foreach ($groups as $group => $items) {
                if (!isset($this->hints[$group])) {
                    continue;
                }
                $path = $this->getResourcePath($language->code, $area, $group);
                $this->publishTranslations($path, $items);
            }
            $this->putGitignore($area);
        }
        return true;
    }