Search code examples
c#model-view-controllerlocalizationasp.net-identity

Localizing my display name attribute but can't reference my resource


I'm trying to localize my display name attribute but "ResourceType" can't find my resource file. Resource file is directly in my solution.

enter image description here

Also set my access modifier to public but still not working.

Also set my access modifier to public but still not working.

I can't even see it.

enter image description here


Solution

  • It appears the issue is that you are specifying a locale for the resource file without having a default one present in your solution.

    DisplayName.resx would be the default language of your application and is needed for the resolution mechanism to work

    DisplayName.<locale code>.resx will then override the default locale resources for that particular locale.