In Logout and Register classes there are used something like "translator", for example
$message = $this->translator->get('Your session has been terminated');
But in Login it looks like messages are hard coded.. Couldn't find info how can translate validation messages..
if (! $user || ! $userProvider->validateCredentials($user, $args)) {
throw new AuthenticationException('The provided credentials are incorrect.');
}
if ($user instanceof MustVerifyEmail && ! $user->hasVerifiedEmail()) {
throw new AuthenticationException('Your email address is not verified.');
}
In Logout and Register classes there are used something like "translator", for example $message = $this->translator->get('Your session has been terminated');
But in Login it looks like messages are hard coded.. Couldn't find info how can translate validation messages..
if (! $user || ! $userProvider->validateCredentials($user, $args)) { throw new AuthenticationException('The provided credentials are incorrect.'); }
if ($user instanceof MustVerifyEmail && ! $user->hasVerifiedEmail()) { throw new AuthenticationException('Your email address is not verified.'); }