Skip to content

Commit ee1d3b8

Browse files
committed
Merge pull request #2981 from gets0ul/issue-2739
Fix for Issue #2739 - Add lang attribute
1 parent 8a5a35d commit ee1d3b8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

__tests__/shared/__snapshots__/index.jsx.snap

+10
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ exports[`Snapshot match 1`] = `
55
<HelmetWrapper
66
defer={true}
77
encodeSpecialCharacters={true}
8+
htmlAttributes={
9+
Object {
10+
"lang": "en",
11+
}
12+
}
813
>
914
<meta
1015
content="#FFFFFF"
@@ -34,6 +39,11 @@ exports[`Snapshot match 2`] = `
3439
<HelmetWrapper
3540
defer={true}
3641
encodeSpecialCharacters={true}
42+
htmlAttributes={
43+
Object {
44+
"lang": "en",
45+
}
46+
}
3747
>
3848
<meta
3949
content="#FFFFFF"

src/shared/app.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if (process.env.NODE_ENV === 'production') {
3434
export default function App() {
3535
return (
3636
<div>
37-
<Helmet>
37+
<Helmet htmlAttributes={{ lang: 'en' }}>
3838
<meta name="theme-color" content="#FFFFFF" />
3939
<link rel="manifest" href="/challenges/manifest.json" />
4040
</Helmet>

0 commit comments

Comments
 (0)