Mvvm validation and localization

Feb 8, 2017 at 5:56 PM
Edited Feb 8, 2017 at 6:29 PM

I use the resx in a separate project. Resources do not update according to the language.

-Resources.resx (NomEstRequis=Nom) (NomEstRequis=NomFR)
-Resources.en.resx (NomEstRequis=NomEN)

ProjectTest with a reference to ProjectLocalization.

Example of rule used:
Validator.AddRule(() => Nom,
() => { if (string.IsNullOrEmpty(_nom))
return RuleResult.Invalid(ProjectLocalization.Properties.Resources.NomEstRequis); });
Resources do not change based on localization. Is this a problem of Thread?
Feb 8, 2017 at 6:31 PM
I found the solution: "CultureInfo.DefaultThreadCurrentUICulture"