Skip to content

Commit de4815d

Browse files
committed
MSFT-15 Add lang attribute.
1 parent fd3a066 commit de4815d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

__tests__/shared/__snapshots__/index.jsx.snap

Lines changed: 10 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)