public function saveTranslation($locale, $dict) { $file = $this->getTranslationDir() . DIRECTORY_SEPARATOR . $locale . '.yml'; return ConfigCompiler::write_yaml($file, $dict); }