Skip to content

Commit 4777903

Browse files
committed
workaround matchPath issue
1 parent cbc5a08 commit 4777903

File tree

7 files changed

+776
-462
lines changed

7 files changed

+776
-462
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ plugins: [
5050
defaultLanguage: `ko`,
5151
// option to redirect to `/ko` when connecting `/`
5252
redirect: true,
53-
// option to generate language-specific 404 pages
54-
generate404: true,
5553
},
5654
},
5755
]
@@ -114,8 +112,7 @@ path | string | language JSON resource path
114112
languages | string[] | supported language keys
115113
defaultLanguage | string | default language when visiting `/page` instead of `ko/page`
116114
redirect | boolean | if the value is `true`, `/` or `/page-2` will be redirected to the user's preferred language router. e.g) `/ko` or `/ko/page-2`. Otherwise, the pages will render `defaultLangugage` language.
117-
redirectComponent | string (Optional) | additional component file path to be rendered on with a redirection component for SEO.
118-
generate404 | boolean | If the value is true, language-specific 404 pages will be handled. For example, `/ko/missing-page` will show a Korean 404 page if this value is set to true. When this value is set to false, `/ko/missing-page` will show a 404 page in the default language.
115+
redirectComponent | string (optional) | additional component file path to be rendered on with a redirection component for SEO.
119116

120117

121118
## Components

examples/gatsby-starter-default-intl/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
"version": "0.2.1",
66
"author": "Daewoong Moon <wiziple@gmail.com>",
77
"dependencies": {
8-
"gatsby": "2.8.4",
9-
"gatsby-image": "^2.1.2",
10-
"gatsby-plugin-intl": "^0.2.4",
11-
"gatsby-plugin-manifest": "^2.1.1",
12-
"gatsby-plugin-offline": "^2.1.1",
13-
"gatsby-plugin-react-helmet": "^3.0.12",
14-
"gatsby-plugin-sharp": "^2.1.3",
15-
"gatsby-source-filesystem": "^2.0.38",
16-
"gatsby-transformer-sharp": "^2.1.21",
8+
"gatsby": "^2.11.3",
9+
"gatsby-image": "^2.2.3",
10+
"gatsby-plugin-intl": "^0.2.5",
11+
"gatsby-plugin-manifest": "^2.2.0",
12+
"gatsby-plugin-offline": "^2.2.0",
13+
"gatsby-plugin-react-helmet": "^3.1.0",
14+
"gatsby-plugin-sharp": "^2.2.1",
15+
"gatsby-source-filesystem": "^2.1.1",
16+
"gatsby-transformer-sharp": "^2.2.0",
1717
"prop-types": "^15.7.2",
1818
"react": "^16.8.6",
1919
"react-dom": "^16.8.6",
2020
"react-helmet": "^5.2.1"
2121
},
2222
"devDependencies": {
23-
"prettier": "^1.17.1"
23+
"prettier": "^1.18.2"
2424
},
2525
"keywords": [
2626
"gatsby"

0 commit comments

Comments
 (0)