Skip to content

Commit a02d4ee

Browse files
author
Stanislav Idolov
authored
ENGCOM-3343: Fix numeric translation keys being dissolved by array_merge #18968
2 parents 5813463 + a9ccf3b commit a02d4ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/Magento/Framework/App/Language/Dictionary.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public function getDictionary($languageCode)
111111
/** @var Config $languageConfig */
112112
$languageConfig = $packInfo['language'];
113113
$dictionary = $this->readPackCsv($languageConfig->getVendor(), $languageConfig->getPackage());
114-
$result = array_merge($result, $dictionary);
114+
foreach ($dictionary as $key => $value) {
115+
$result[$key] = $value;
116+
}
115117
}
116118
return $result;
117119
}

0 commit comments

Comments
 (0)