Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3916

Symfony 4 default_locale is not working on Security library messages

$
0
0

I am building single language Symfony (v4.4.7) application.As I understood from the documentation I need to set

framework:    default_locale: tr    translator:        default_path: '%kernel.project_dir%/translations'        fallbacks:            - en

in config/packages/translation.yamlto change lang in the whole application.

Using configuration above custom translations are working!However, Symfony Security library still showing messages in English (e.g Invalid credentials. when user password is incorrect).Removing default_path: '%kernel.project_dir%/translations' line does not help.I tried to change the default_locale to other languages still the same result.


Viewing all articles
Browse latest Browse all 3916

Trending Articles