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

前端 未结 3 847
独厮守ぢ
独厮守ぢ 2021-02-07 18:31

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 19:02

    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

提交回复
热议问题