Wollhaar
Wollhaar

Reputation: 182

configure jms_i18n_routing for InvalidConfigurationException

I want to use the JMSi18nRoutingBundle. So i already have installed it in my project. Now when i try to run the server the commandline says:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]

The child node "default_locale" at path "jms_i18n_routing" must be configured.

But the path in this file is dynamic and will be only changed through the setPath() method. So where and how i have to configure it?

Upvotes: 2

Views: 1086

Answers (1)

Wollhaar
Wollhaar

Reputation: 182

ok solved it!

the configuration to the JMSi18nRoutingBundle:

jms_i18n_routing:
    default_locale: en
    locales: [en, de]
    strategy: prefix

need to be written in the config.yml. Additionally to this, the Translator in the Config has to be enabled. That´s all.

Upvotes: 3

Related Questions