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 locale for some pages with setI18nParams #3191

Closed
3 of 4 tasks
Tofandel opened this issue Oct 29, 2024 · 3 comments
Closed
3 of 4 tasks

Disable locale for some pages with setI18nParams #3191

Tofandel opened this issue Oct 29, 2024 · 3 comments

Comments

@Tofandel
Copy link

Describe the feature

Usually to define parameters translation we use setI18nParams({fr: {param: 'foo'}), but what if we want to disable a locale for a specific page dynamically (for example because the backend said that the page is not yet translated)

It seems doing setI18nParams({fr: false) could be a solution but currently with this it just acts like if the function was not even called

Additional information

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

Final checks

@BobbieGoede
Copy link
Collaborator

If I understand correctly this sounds like a feature that would resolve #2782, is that right?

@Tofandel
Copy link
Author

Tofandel commented Nov 3, 2024

Yeah that's actually a duplicate, the title of that issue is not very descriptive of the problem but I guess I'll close this one and continue the discussion there

@Tofandel Tofandel closed this as completed Nov 3, 2024
@BobbieGoede
Copy link
Collaborator

Agreed the title is not very descriptive, I've updated it to something that more closely matches yours, hopefully it will help others find it too 🙏

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

2 participants