question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disabling Built-in Localization does not work

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adelisardocommented, Jun 5, 2017

Thanks a lot, it works 😃 and it works without: ValidatorOptions.LanguageManager.Culture = new CultureInfo(lang);

Have a great day

1reaction
JeremySkinnercommented, Jun 5, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found