BeSimple/BeSimpleI18nRoutingBundle — Issue #12: Is it possible to check valid locale?
Author: zapik
Created: 2011-10-18 17:08:39+00:00
State: open

If I have:

homepage:
locales: { en: /welcome/{name}, fr: /bienvenue/{name}, de: /willkommen/{name} }
defaults: { _controller: MyWebsiteBundle:Frontend:index }

is it possible to configure bundle that URL

en.myexample.com/welcome/john

will be valid, but

de.myexample.com/welcome/franz

will throw exception that no route was found? de.myexample.com/willkommen/franz should be only accepted for german. But actually all of combinations of URL work regardless of locale parameter in URL.

Thank you