Skip to content

Commit

Permalink
Update: make source compatible with OroPlatform 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainraye committed May 7, 2021
1 parent 687a71c commit 4a8b9f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Command/TranslationExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function execute(InputInterface $input, OutputInterface $output)
$domains = explode(',', $input->getOption('domains'));
$simulate = $input->getOption('simulate');

$availableLocales = array_keys($this->languageProvider->getAvailableLanguages());
$availableLocales = $this->languageProvider->getAvailableLanguageCodes(true);

$output->writeln(
sprintf(
Expand Down
2 changes: 1 addition & 1 deletion Command/TranslationLoadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function execute(InputInterface $input, OutputInterface $output)
return 0;
}

$availableLocales = array_keys($this->languageProvider->getAvailableLanguages());
$availableLocales = $this->languageProvider->getAvailableLanguageCodes(true);

$output->writeln(
sprintf(
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"oro/platform": "4.0.*|4.1.*",
"oro/platform": "4.2.*",
"babymarkt/deepl-php-lib": "2.0.1"
},
"autoload": {
Expand Down

0 comments on commit 4a8b9f2

Please sign in to comment.