Search code examples
phplangsymfony-3.3

Symfony 3 set default language to spanish


i´m new on symfony and this is a simple question. I need to the spanish as default.

I change the security.yml to

framework:
    default_locale: es
    translator: { fallbacks: [es] }

But I'm still getting

Invalid credentials.

Thank you in advance!


Solution

  • A co-worker told me the solution.

    Inside the config.yml I needed to change to this

    parameters:
        locale: es