Skip to content
Snippets Groups Projects
Commit 27de6521 authored by Linda's avatar Linda
Browse files

set lang attribute when language is updated

parent 6e70936b
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ class LanguageSelector extends React.Component {
children,
...props
} = this.props;
document.documentElement.lang = this.props.currentLocale; //update the lang attribute of the html for screenreaders
return (
<LanguageSelectorComponent
onChange={this.handleChange}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment