Skip to content

Commit

Permalink
fix issue with js translation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Aug 18, 2020
1 parent dcfa9f3 commit 0bdc944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/traits/ApplicationTrait.php
Expand Up @@ -355,8 +355,8 @@ public function getAdminModulesAssets()
public function getAdminModulesJsTranslationMessages()
{
$jsTranslations = [];
foreach ($this->getAdminModules() as $module) {
$jsTranslations = array_merge($module->getJsTranslationMessages(), $jsTranslations);
foreach ($this->getAdminModules() as $id => $module) {
$jsTranslations[$id] = $module->getJsTranslationMessages();
}

return $jsTranslations;
Expand Down

0 comments on commit 0bdc944

Please sign in to comment.