vendor\symfony\symfony\src\Symfony\Component\Security\Core\Resources\translations\security.en.xlf
We could just copy the key and override it in our custom translation files.
| "Invalid credentials." : Invalid credentials. |
| "Invalid credentials." : معلومات الدخول خاطئة. |
| {% if error %} | |
| <div class="alert alert-danger alert-dismissable"> | |
| <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
| {{ error.messageKey|trans({}, 'messages') }} | |
| {# Here the 'messages' is important as it refers the domain of your translation, | |
| or if you prefer the name of your translation file. In my case : messages.en.yml #} | |
| </div> | |
| {% endif %} |