valdisiljuconoks / localization-provider-core

Database driven localization provider for .NET applications (with administrative management UI)
Apache License 2.0
120 stars 22 forks source link

`Html.LabelFor()` does not work for model property without `[Display()]` attribute #98

Closed valdisiljuconoks closed 2 years ago

valdisiljuconoks commented 2 years ago

When having a model:

[LocalizedModel]
public class UserViewModel
{
    public string Username { get; set; }
}

@Html.LabelFor(m => m.Username) does not work properly. Instead just name of the property is returned.