bolt / boltforms

Bolt 3 Forms extension - Symfony interface and API for Bolt
http://bolt.cm
GNU General Public License v3.0
52 stars 57 forks source link

Translation integration #190

Open xiaohutai opened 6 years ago

xiaohutai commented 6 years ago

Any news/possibility of an integration with Symfony Translate ?

Sometimes we make simple sites with a contact form in Dutch (and bolt/translate is not really needed I feel). It would be nice to have these constraint messages translated automatically.

mefjuu commented 6 years ago

I don't know how to translate some form stuff as well. E.g. is it possible to translate default Symfony Form's "This value is not valid." message? I think it could be done through app/resources/translations/pl_PL/messages.pl_PL.yml

SvanteRichter commented 6 years ago

Currently AnimalDesign/bolt-translate ships with a hacky form template to do some of this (via labels), but it is clearly not the right solution. I think this would be good to have as a larger discussion in bolt/bolt as how to handle frontend translations properly for both extensions and themes, neither AnimalDesign/bolt-translate or bolt/labels are integrated enough or good enough to handle it.