Skip to content

Commit 5bb1795

Browse files
committed
ACP2E-1999: translation for show and set config
1 parent e99809b commit 5bb1795

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/code/Magento/Config/Console/Command/ConfigSetCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
181181

182182
try {
183183
$message = $this->emulatedAreaProcessor->process(function () use ($input) {
184-
$this->localeEmulator->emulate(function () use ($input) {
184+
return $this->localeEmulator->emulate(function () use ($input) {
185185
$lock = $input->getOption(static::OPTION_LOCK_ENV)
186186
|| $input->getOption(static::OPTION_LOCK_CONFIG)
187187
|| $input->getOption(static::OPTION_LOCK);

app/code/Magento/Config/Console/Command/ConfigShowCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
180180
$this->inputPath = $inputPath !== null ? trim($inputPath, '/') : '';
181181

182182
$configValue = $this->emulatedAreaProcessor->process(function () {
183-
$this->localeEmulator->emulate(function () {
183+
return $this->localeEmulator->emulate(function () {
184184
$this->scopeValidator->isValid($this->scope, $this->scopeCode);
185185
if ($this->inputPath) {
186186
$pathValidator = $this->pathValidatorFactory->create();

app/code/Magento/Theme/Plugin/LocaleEmulator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ public function __construct(Design $design)
3131
* @param callable $proceed
3232
* @param callable $callback
3333
* @param string|null $locale
34-
* @return void
34+
* @return mixed
3535
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3636
*/
3737
public function aroundEmulate(
3838
\Magento\Config\Console\Command\LocaleEmulator $subject,
3939
callable $proceed,
4040
callable $callback,
4141
?string $locale = null
42-
): void {
42+
): mixed {
4343
$initialTheme = $this->design->getDesignTheme();
4444
$this->design->setDefaultDesignTheme();
4545
try {
46-
$proceed($callback, $locale);
46+
return $proceed($callback, $locale);
4747
} finally {
4848
if ($initialTheme) {
4949
$this->design->setDesignTheme($initialTheme);

0 commit comments

Comments
 (0)