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

Disable/Pick locales in layered project #3047

Open
2 of 4 tasks
warflash opened this issue Jul 30, 2024 · 2 comments
Open
2 of 4 tasks

Disable/Pick locales in layered project #3047

warflash opened this issue Jul 30, 2024 · 2 comments

Comments

@warflash
Copy link
Contributor

Describe the feature

In a similar vein as #3045, it'd be nice to be able to pick/whitelist certain locales in layers.
Currently baseLayer may have en, de, fr as locales, then any layer extending that base layer is also forced to inherit those.
For us this causes quite the headache as some projects that build on top of base layer components might only be available in certain locales, a subset of all locales in baseLayer basically.

A proposal might be a specific "(picked)(Layer)Locales" array where the language codes of the target languages can be specified.

If this needs a reproduction or example then I'm very happy to add one, thanks! 💚

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

@Aurion72
Copy link

Aurion72 commented Aug 9, 2024

I need this one too :)

@Xenossolitarius
Copy link

hmmm this already exists but it's not documented, in your child layer, @BobbieGoede probably forgot this exists bcs it's not documented. I am relying on this too and I added PR to SEO sitemap module so it supports it

  i18n: {
    defaultLocale: 'hr',
    bundle: {
      onlyLocales: ['hr', 'en'],
    },
  },

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

No branches or pull requests

4 participants