Skip to content

Commit

Permalink
Fixed default value for locales in translation push|pull commands
Browse files Browse the repository at this point in the history
  • Loading branch information
welcoMattic committed Jul 25, 2021
1 parent a2e6cc6 commit d89ad72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Command/TranslationPushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
$provider = $this->providers->get($input->getArgument('provider'));

if (!$this->enabledLocales) {
throw new InvalidArgumentException('You must define "framework.translator.enabled_locales" or "framework.translator.providers.%s.locales" config key in order to work with translation providers.');
throw new InvalidArgumentException(sprintf('You must define "framework.translator.enabled_locales" or "framework.translator.providers.%s.locales" config key in order to work with translation providers.', parse_url($provider, \PHP_URL_SCHEME)));
}

$io = new SymfonyStyle($input, $output);

$provider = $this->providers->get($input->getArgument('provider'));
$domains = $input->getOption('domains');
$locales = $input->getOption('locales');
$force = $input->getOption('force');
Expand Down

0 comments on commit d89ad72

Please sign in to comment.