Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Display Attribute localization does not work on shared resource #5275

Closed
chaiNeehujui opened this issue Sep 13, 2016 · 3 comments
Closed

Display Attribute localization does not work on shared resource #5275

chaiNeehujui opened this issue Sep 13, 2016 · 3 comments

Comments

@chaiNeehujui
Copy link

chaiNeehujui commented Sep 13, 2016

In 1.1.0-alpha1-22125 localization Name property in DisplayAttribute works well when all models have their own resource files (assume that ~/Resources/Models/TestBindingModel.en.resx) but when I try to use single resource file by

.AddDataAnnotationsLocalization(options => {
    options.DataAnnotationLocalizerProvider = (type, factory) => 
        factory.Create(typeof(SharedResource));
})

localization does not work.

@danroth27
Copy link
Member

@ryanbrandenburg

@ryanbrandenburg
Copy link
Contributor

@akanmuratcimen I was able to reproduce this, I'm working on a fix now. Thanks!

@ryanbrandenburg
Copy link
Contributor

Fixed by #5287. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants