Exemplo n.º 1
0
 /**
  * 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);
         }
     }
 }
Exemplo n.º 2
0
 /**
  * @return LabelsCollection
  */
 public function get()
 {
     return $this->collection->set($this->extraction);
 }