Skip to content

Commit

Permalink
get language code
Browse files Browse the repository at this point in the history
  • Loading branch information
crissanclick authored and mageprince committed Jul 27, 2018
1 parent f06f52c commit 6702cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/View/Page/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function __construct(
$this->setElementAttribute(
self::ELEMENT_TYPE_HTML,
self::HTML_ATTRIBUTE_LANG,
str_replace('_', '-', $this->localeResolver->getLocale())
strstr($this->localeResolver->getLocale(), '_', true)
);
}

Expand Down

0 comments on commit 6702cdc

Please sign in to comment.