public function postRemoveLocale(Request $request) { foreach ($request->input('remove-locale', []) as $locale => $val) { $this->manager->removeLocale($locale); } return redirect()->back(); }
/** * Execute the console command. * * @return void */ public function fire() { $replace = $this->option('replace'); $counter = $this->manager->importTranslations($replace); $this->info('Done importing, processed ' . $counter . ' items!'); }
/** * Execute the console command. * * @return void */ public function fire() { $this->manager->truncateTranslations(); $this->info("All translations are deleted"); }
/** * Execute the console command. * * @return void */ public function fire() { $this->manager->cleanTranslations(); $this->info("Done cleaning translations"); }
/** * Execute the console command. * * @return void */ public function fire() { $group = $this->argument('group'); $this->manager->exportTranslations($group); $this->info("Done writing language files for " . ($group == '*' ? 'ALL groups' : $group . " group")); }
/** * Execute the console command. * * @return void */ public function fire() { $counter = $this->manager->findTranslations(); $this->info('Done importing, processed ' . $counter . ' items!'); }