Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Set language to German

$
0
0

This is a basic issue. I would like the default messages to be German. How do you configure this? The documentation says that FluentValidation supports German out of the box. But it does not say how to set the language?! There is no example for setting the language to one that is supported out of the box.

I tried to set the Culture using the Thread class:

Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("de-DE");
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("de-DE");

But the messages are still in English. So there needs to be something else I must specify somewhere. But where?


Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>