You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the plugin does not generate dedicated page for default
language. However, dedicated page for default language is useful for
below cases:
1. We want to specify language when sharing a link
2. Server-side redirect using Accept-language header.
| path | string | path to the folder with JSON translations |
249
-
| languages | string[]| supported language keys |
250
-
| defaultLanguage | string | default language when visiting `/page` instead of `/es/page`|
251
-
| redirect | boolean | if the value is `true`, `/` or `/page-2` will be redirected to the user's preferred language router. e.g) `/es` or `/es/page-2`. Otherwise, the pages will render `defaultLangugage` language. Default is `true`|
252
-
| siteUrl | string | public site url, is used to generate language specific meta tags |
253
-
| pages | array | an array of [page options](#page-options) used to modify plugin behaviour for specific pages |
| path | string | path to the folder with JSON translations |
249
+
| languages | string[]| supported language keys |
250
+
| defaultLanguage | string | default language when visiting `/page` instead of `/es/page`|
251
+
| generateDefaultLanguagePage | string | generate dedicated page for default language. e.g) `/en/page`. It is useful when you need page urls for all languages. For example, server-side [redirect](https://www.gatsbyjs.com/docs/reference/config-files/actions/#createRedirect) using `Accept-Language` header. Default is `false`. |
252
+
| redirect | boolean | if the value is `true`, `/` or `/page-2` will be redirected to the user's preferred language router. e.g) `/es` or `/es/page-2`. Otherwise, the pages will render `defaultLangugage` language. Default is `true`|
253
+
| siteUrl | string | public site url, is used to generate language specific meta tags |
254
+
| pages | array | an array of [page options](#page-options) used to modify plugin behaviour for specific pages |
0 commit comments