I want to use the fosuser registration form on different urls for different languages. Like for example /en/register and /de/registrierung.
# app/config/routing.yml
fos_user_register_de:
pattern: /de/registrierung
defaults: { _controller: FOSUserBundle:Registration:register }
methods: [GET,POST]
requirements:
_locale: de
fos_user_register_en:
pattern: /en/registration
defaults: { _controller: FOSUserBundle:Registration:register }
methods: [GET,POST]
requirements:
_locale: en
On submit of the form I get an error because the route name is not "fos_user_registration_register". Same thing on the confirmation.
Is there a way to do this without using a bundle like PUGXMultiUserBundle?
pattern: /{_locale}/registration
normally, but I didn't saw the translation on registration. But there's also a solution, the JMSI18nRoutingBundle – Pazi 22 hours ago