lunetics-org / LocaleBundle

Locale Bundle for symfony
MIT License
186 stars 76 forks source link

Compatibility with Symfony Flex #207

Open Mondane opened 6 years ago

Mondane commented 6 years ago

When I require this bundle, I get the following error:

The child node "guessing_order" at path "lunetics_locale" must be configured.

A workaround is to add the configuration beforehand:

config/packages/lunetics_locale.yaml

lunetics_locale:
    allowed_locales: [ 'en' ]
    guessing_order:
        - query
        - session
        - cookie
        - browser
        - router
    switcher:
        show_current_locale: true

But this shouldn't be necessary.

hacfi commented 6 years ago

We need to work on a PR for https://github.com/symfony/recipes-contrib then. I won't have time this week but could prepare this the next weeks if noone else has time to do it.