We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e70936 commit 27de652Copy full SHA for 27de652
src/containers/language-selector.jsx
@@ -27,6 +27,7 @@ class LanguageSelector extends React.Component {
27
children,
28
...props
29
} = this.props;
30
+ document.documentElement.lang = this.props.currentLocale; //update the lang attribute of the html for screenreaders
31
return (
32
<LanguageSelectorComponent
33
onChange={this.handleChange}
0 commit comments