Disabling Built-in Localization does not work
See original GitHub issueHi
I’m using Fluent Validation with ASP.NET 4.6 (WebApi) but it’s not possible to Disabling Built-in Localization and change default culture
ValidatorOptions.LanguageManager.Enabled = false;
ValidatorOptions.LanguageManager.Culture = new CultureInfo("fa");
How can i fix this problem ?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Turn off .NET localization in Visual Studio Code
The recommended workaround is to navigate to your Omnisharp directory. You can find the path by looking at the Omnisharp logs.
Read more >Localization not working | Optimizely Developer Community
On some pages it does not work at all (always shows in english or always in Swedish, is there a cache?), in some...
Read more >"Disable Localization" does not work
In Version 2.1.1 (804) the disable localization function does not work. I have the box checked and Glyphs restarted, but all the menues...
Read more >Use localized plugin name and description even when the ...
I'm working on plugin development and I'd like to localize my plugin name and description, so that these two pieces of information are...
Read more >Built-in administrator localization
I wonder if you followed these steps: in NTLite Toolbar - "Add local account" Check "Enable built-in Administrator using this accoun2t.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a lot, it works 😃 and it works without:
ValidatorOptions.LanguageManager.Culture = new CultureInfo(lang);
Have a great day
I would have expected that to work. I’ll make sure that gets fixed for the next release.
For now, I think you can work around it by calling
CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo(lang)
. That will set the default culture for any new threads. Could you give that a try and let me know if it works?Edit: Yes if you’d like to contribute translations for any validators that are missing that would be greatly appreciated - thanks!