Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gatsby-theme-i18n] limit generation of localised pages to a subset of pages only #128

Open
olivier-lacroix opened this issue May 27, 2021 · 1 comment · May be fixed by #133
Open

[gatsby-theme-i18n] limit generation of localised pages to a subset of pages only #128

olivier-lacroix opened this issue May 27, 2021 · 1 comment · May be fixed by #133

Comments

@olivier-lacroix
Copy link

olivier-lacroix commented May 27, 2021

Hello,

For some locales, I want to generate a localised page for only some pages. gatsby-theme-i18n currently does not allow that.

I imagine that:

  • this could be parametrised by an array of RegExp whitelisting pages to localise in the config file;
  • localizedPath would fallback to default locale when requesting a page that is not available in a given locale

Is this a feature you would consider including in gatsby-theme-i18n?

@olivier-lacroix
Copy link
Author

I gave it a go in PR #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant