Closed
Description
Preconditions
- Using Magento 2.1.8
Steps to reproduce
- Using magento with german language
Expected result
- Html header of page should be
<html lang="de">
Actual result
- Html header is
<html lang="de-DE">
This comes from the code in the constructor of framework/View/Page/Config.php
$this->setElementAttribute( self::ELEMENT_TYPE_HTML, self::HTML_ATTRIBUTE_LANG, str_replace('_', '-', $this->localeResolver->getLocale()) );
"de-DE" is no valid iso language code. (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
If you are using word-breaks with hyphenation in css like:
word-break: break-word; hyphens: auto;
You get the result that the hyphens aren't correctly set or no hyphens are set based on the wrong language code. With correct language code, in this case "de", hyphenation is working as expected with german language.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.1 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release