/** * @param string $sub_dir * @param string $locale * @return string */ private function getLocalizedPath($sub_dir, $locale) { if ($this->project->isMultilingual()) { return $this->project->getPath() . "/{$locale}/{$sub_dir}"; } else { return $this->project->getPath() . "/{$sub_dir}"; } }