Localising DisplayAttribute and avoiding magic strings in ASP.NET Core

added by DotNetKicks
9/27/2016 11:49:16 AM

1 Kicks, 303 Views

This post follows on from my previous post about localising an ASP.NET Core application. At the end of that article, we had localised our application so that the user could choose their culture, which would update the page title and the validation attributes with the appropriate translation, but not the form labels.