Replies: 1 comment
-
Hey, I recommend using this plugin instead, it allows you to let any language be the default path and accessible at the main directory. Here's an example from the demo config: ...
pages: [
{
matchPath: '/:lang?/blog/:uid',
getLanguageFromPath: true,
excludeLanguages: ['es']
},
{
matchPath: '/preview',
languages: ['en']
}
]
... I hope this helps :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The project I am working on has requirements to support multiple languages with a route structure like so:
english : /path
german: /de/path
french: /fr/path
I'm unable to find a good way to do this. The plugin https://github.com/angeloocana/gatsby-plugin-i18n forces /en/ in the path for english.
I've attempted to use a proxy and symlink and the client side routing redirects it back to its pagePath
gatsby/packages/gatsby/cache-dir/production-app.js
Line 159 in 7f349ff
Beta Was this translation helpful? Give feedback.
All reactions