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

Simple Forms I18n scope "alchemy.forms" also active in "main project" and ways to prevent this #2841

Closed
Olli opened this issue Apr 16, 2024 · 1 comment

Comments

@Olli
Copy link

Olli commented Apr 16, 2024

I use alchemyCMS as an engine. I also use in the main app simple_forms. It happens in some of my forms that the I18n lookup context is alchemy.forms .
I have no clue why this happens and why this happens in some forms and other forms work fine.
Is this a bug or some misconfiguration on my side?

@Olli Olli changed the title Simple Forms I18n scope also active in "main project" and ways to prevent this Simple Forms I18n scope "alchemy.forms" also active in "main project" and ways to prevent this Apr 16, 2024
@Olli
Copy link
Author

Olli commented Apr 18, 2024

Maybe it's worth to mention this in the docs
This problem can circumvented if in the main project for simple forms an scope has been explicitly set like

config.i18n_scope = 'simple_form'

Then everything works like expected.

@Olli Olli closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant