N
N
nonlux2015-10-03 23:14:07
symfony
nonlux, 2015-10-03 23:14:07

Is the jms/i18n-routing-bundle dead?

Judging by the commits, the developer forgot about the last bundle 8 months ago.
Is it so?
If so, what to use?
Interested in prefix_except_default strategy i.e.:
/news - Russian locale
/en/news - English
I see the extension as an extension Sensio\Bundle\FrameworkExtraBundle\Routing\AnnotatedRouteControllerLoader which will add the route /{_locale}/news

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2015-10-03
@nonlux

symfony.com/doc/current/book/routing.html (Middle of the page)

/**
     * @Route("/{_locale}", defaults={"_locale": "en"}, requirements={
     *     "_locale": "en|fr"
     * })
     */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question