setDescription('Dump translation files'); } /** * {@inheritdoc} */ protected function doExecute(InputInterface $input, OutputInterface $output) { foreach (array_keys($this->container->getAvailableLanguages()) as $code) { $builder = new ConfigBuilder(); $config = $builder->setLocale($code) ->setOutputFormat('xlf') ->setTranslationsDir(__DIR__ . '/../../../../../resources/locales') ->setScanDirs([ $this->container['root.path'].'/lib', $this->container['root.path'].'/templates', $this->container['root.path'].'/bin', $this->container['root.path'].'/www', ]) ->getConfig(); $this->container['translation-extractor.updater']->process($config); } return 0; } }