AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
839 stars 315 forks source link

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

Closed Olli closed 5 months ago

Olli commented 5 months ago

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 commented 5 months ago

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.