Fixed localization for /Home/Login

This commit is contained in:
2025-10-12 20:18:57 +02:00
parent b956a6877a
commit 3958c97132
3 changed files with 18 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Mvc.Localization
@model LoginViewModel
@inject IViewLocalizer T
@{
ViewData["Title"] = T["Login"];
@@ -10,7 +11,7 @@
if (Model.ErrorText is not null)
{
<div class="alert alert-danger text-center login-error">
<h2>@Model.ErrorText</h2>
<h2>@T[Model.ErrorText]</h2>
</div>
}
}