mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
Include a lang
property on html node (#295)
Google Chrome guesses the language if this is not present. Large quantities of source code can confuse it and lead to it selecting completely the wrong language.
This commit is contained in:
parent
c60131fdb4
commit
bf8006f6ba
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Site extends React.Component {
|
|||
latestVersion = require(CWD + '/versions.json')[0];
|
||||
}
|
||||
return (
|
||||
<html>
|
||||
<html lang={this.props.language}>
|
||||
<Head
|
||||
config={this.props.config}
|
||||
description={description}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue