Symfony translations not working in prod
I am trying to implement symfony translations ... Works fine in dev, 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'm using: {{error.message | trans}}
Again, it works fine in DEV, but not in PROD.
Do I need to do one more configuration?
+3
source to share
1 answer
The cache needs to be cleared - as Marino mentioned it .
php app/console cache:clear --env=prod --no-debug
+1
source to share