Hi everybody !
I just built my first website with Grav, all from scratch including theme and it was a positive experience so far !
The only thing, I have a problem with my contact form. My website is a single multilingual modular page. I have defined the form in both my english and french modular subfolder and it works great. However, it seems like the form is always displayed with fields in one language, the first language the page is loaded after cache deletation. I empty cache then load french, form is in french when I switch to english. I even disbled cache for my Footer modular sub page but that doesn’t solve it.
I also tried to put a different form name in each language, then in content load it like this: {% include “forms/form.html.twig” with { form: forms(‘contact_en’) } %} or {% include “forms/form.html.twig” with { form: forms(‘contact_fr’) } %}, but then when I switch language, form is not displayed if it’s not the initial loaded language.
Is there something I have missed ? Is it a bug ?
You can see the site here: https://demenagementmt.com
I have put my two Markdown pages in a Gist here: https://gist.github.com/davidbrisebois/022fba336ce309b466de718b42111adf
Thanks