How to Localize validation message (DataAnnotationsValidator) in blazor server side

前端 未结 3 1620
小鲜肉
小鲜肉 2021-02-07 18:23

I am using blazor 3.1 in latest version of VS 2019.

So far, I am able to localize page labels (title, table fields etc.).

On the ListEmployee.razor

3条回答
  •  难免孤独
    2021-02-07 18:51

    This has been asked before:

    How to add ViewModel localization to Blazor?

    I suggested that using FluentValidation would be a better approach. Here is a link to my Github repo that demonstrates how it could work:

    https://github.com/conficient/BlazorValidationLocalization

提交回复
热议问题