Skip to content

Commit d643bd1

Browse files
committed
update example
Signed-off-by: Dmitriy Nevzorov <[email protected]>
1 parent b990f08 commit d643bd1

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"gatsby-plugin-manifest": "^2.4.5",
1111
"gatsby-plugin-offline": "^3.2.3",
1212
"gatsby-plugin-react-helmet": "^3.3.1",
13-
"gatsby-plugin-react-i18next": "^0.0.9",
13+
"gatsby-plugin-react-i18next": "^0.0.11",
1414
"gatsby-plugin-sharp": "^2.6.4",
1515
"gatsby-source-filesystem": "^2.3.4",
1616
"gatsby-transformer-sharp": "^2.5.2",

example/src/components/seo.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
import React from 'react';
99
import PropTypes from 'prop-types';
10-
import {Helmet} from 'react-helmet';
10+
import {Helmet} from 'gatsby-plugin-react-i18next';
1111
import {useStaticQuery, graphql} from 'gatsby';
1212

13-
function SEO({description, lang, meta, title}) {
13+
function SEO({description, meta, title}) {
1414
const {site} = useStaticQuery(
1515
graphql`
1616
query {
@@ -29,9 +29,6 @@ function SEO({description, lang, meta, title}) {
2929

3030
return (
3131
<Helmet
32-
htmlAttributes={{
33-
lang
34-
}}
3532
title={title}
3633
titleTemplate={`%s | ${site.siteMetadata.title}`}
3734
meta={[
@@ -73,7 +70,6 @@ function SEO({description, lang, meta, title}) {
7370
}
7471

7572
SEO.defaultProps = {
76-
lang: `en`,
7773
meta: [],
7874
description: ``
7975
};

example/yarn.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5773,16 +5773,15 @@ gatsby-plugin-react-helmet@^3.3.1:
57735773
dependencies:
57745774
"@babel/runtime" "^7.9.6"
57755775

5776-
gatsby-plugin-react-i18next@^0.0.6:
5777-
version "0.0.6"
5778-
resolved "https://registry.yarnpkg.com/gatsby-plugin-react-i18next/-/gatsby-plugin-react-i18next-0.0.6.tgz#04432845338a50633a22b1bec2a549b79389159e"
5779-
integrity sha512-TRJiZebcPKTu7Ua6GdGWQobWFR2RAYn8/ulfsng5Ll7GTxMrvRez3UlEAJcaIr44nTR7nccCd1oKfeHUpmD/ng==
5776+
gatsby-plugin-react-i18next@^0.0.11:
5777+
version "0.0.11"
5778+
resolved "https://registry.yarnpkg.com/gatsby-plugin-react-i18next/-/gatsby-plugin-react-i18next-0.0.11.tgz#aeb7fb62a47caa63f5113a3f64de10672a9c9660"
5779+
integrity sha512-2/Gh1ExugxSiRGjBrIAISgoubx6Z2d9wJxcOx99UjsXQGyFMU1YQTZ2cV5TCxcpgao2tkFyVAnegnNuaj/WtRA==
57805780
dependencies:
57815781
bluebird "^3.7.2"
57825782
browser-lang "^0.1.0"
57835783
glob "^7.1.6"
5784-
i18next "^19.4.4"
5785-
react-i18next "^11.5.0"
5784+
react-helmet "^6.0.0"
57865785

57875786
gatsby-plugin-sharp@^2.6.4:
57885787
version "2.6.9"
@@ -6872,7 +6871,7 @@ human-signals@^1.1.1:
68726871
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
68736872
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
68746873

6875-
i18next@^19.0.0, i18next@^19.4.4:
6874+
i18next@^19.0.0, i18next@^19.4.5:
68766875
version "19.4.5"
68776876
resolved "https://registry.yarnpkg.com/i18next/-/i18next-19.4.5.tgz#f9ea8bbb48d1ec66bc3436f0bb74a16b11821e11"
68786877
integrity sha512-aLvSsURoupi3x9IndmV6+m3IGhzLzhYv7Gw+//K3ovdliyGcFRV0I1MuddI0Bk/zR7BG1U+kJOjeHFUcUIdEgg==

0 commit comments

Comments
 (0)