fuzeto
fuzeto

Reputation: 247

Symfony Translations not working in prod

I am trying to implement the symfony translations ... In dev works perfectly but not in prod.

parameters.yml

parameters:
    locale: pt_BR

config.yml

framework:
    translator: { fallback: "%locale%" }

and messages.pt_BR.yml in \Resources\translations\

"Bad credentials" :         "E-mail/senha inválidos"
"User account is disabled.": "Usuário inativo"

.twig i use: {{ error.message|trans }}

Again, in DEV works perfectly, but not in PROD.

I have to do some more configuration?

Upvotes: 4

Views: 1955

Answers (1)

Roman
Roman

Reputation: 2549

The cache has to be cleared - as Marino mentioned it.

php app/console cache:clear --env=prod --no-debug

Upvotes: 2

Related Questions