/** * Run synchronization * * @param LabelsCollection $collection */ public function execute(LabelsCollection $collection) { foreach (Config::get('app.available_locales') as $language) { foreach ($collection->get() as $file => $labels) { if ($file == 'manual') { continue; } $loc = new Localization($language, $file); $data = $loc->merge($labels); $this->save($language, $file, $data); } } }
/** * @return LabelsCollection */ public function get() { return $this->collection->set($this->extraction); }