Skip to content

Commit 5b8f990

Browse files
author
Oleksii Korshenko
committed
MAGETWO-82664: Magento sets ISO invalid language code [2.3-develop Backport] #11644
- Merge Pull Request #11644 from crissanclick/magento2:ISOLanguageCodeBackport - Merged commits: 1. 27431d4
2 parents c6e891d + 27431d4 commit 5b8f990

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/Page

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Page/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function __construct(
173173
$this->setElementAttribute(
174174
self::ELEMENT_TYPE_HTML,
175175
self::HTML_ATTRIBUTE_LANG,
176-
str_replace('_', '-', $this->localeResolver->getLocale())
176+
strstr($this->localeResolver->getLocale(), '_', true)
177177
);
178178
}
179179

0 commit comments

Comments
 (0)