Reputation: 775
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.yaml to 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.
Edit 1 more details:
Content of translations directory:
messages.tr.yaml
contains following lines:
security:
roles_label: "Roller"
roles:
ROLE_SUPER_ADMIN: "Super Admin"
ROLE_ADMIN: "Admin"
ROLE_USER: "Genel Kullanıcı"
I deleted content of the messages.tr.yaml
and tried again but it is still not working. Other tr
translation files does not contain security
keyword
Upvotes: 1
Views: 160