Shared RESX file for data annotation localization in ASP.NET Core 2.0
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser