Joonas Westlin 3/20/2018

Shared RESX file for data annotation localization in ASP.NET Core 2.0

Read Original

This technical tutorial provides a solution for avoiding duplicate RESX files when localizing data annotations in ASP.NET Core 2.0. It demonstrates configuring the DataAnnotationLocalizerProvider to use a shared resource file (SharedResource.resx) for all view models, streamlining the management of validation error messages like "{0} is required" across an application.

Shared RESX file for data annotation localization in ASP.NET Core 2.0

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week