localisation

This commit is contained in:
Paul Schneider 2017-09-24 17:22:25 +02:00
commit 6a3e009e54
8 changed files with 146 additions and 14 deletions

View file

@ -626,7 +626,7 @@ namespace Yavsc.Controllers
{
foreach (var error in result.Errors)
{
ModelState.AddModelError(string.Empty, error.Description);
ModelState.AddModelError(string.Empty, _localizer[ error.Code ]);
}
}