$locale =
$this->container->
get(\Shopware\Components\Model\ModelManager::
class) ->
getRepository(\Shopware\Models\Shop\Locale::
class) ->
findOneByLocale($input->
getArgument('locale'
));
if (!
$locale) { $output->
writeln('<error>Provided locale not found</error>'
);
return 1;
} $this->
exportFormLabels($output,
$locale,
$dir);
$this->
exportElementLabels($output,
$locale,
$dir);
return 0;
} /**
* Exports form labels from the database into a php file containing an array
*
* @param \Shopware\Models\Shop\Locale $locale
* @param string $dir
*
* @throws Exception
*/