Aspnetcore: Is there a German Language Pack available

Created on 14 Jan 2019  ·  3Comments  ·  Source: dotnet/aspnetcore

Knowing that the full .NET Framework provides Language Packs for various languages, I was searching for something similar on the .NET Core 2.2 downloads downloads page without success.

My issue is currently that the validation messages in my ASP.NET Core application for e.g. the Required attribute are shown in English, although the Windows Server and the application are German.

My question:

Is there any language pack for the .NET Core runtime?

If not, how can I tell the runtime to show built-in messages in German, instead of English?

area-mvc question

Most helpful comment

Thanks for contacting us, @UweKeim.
@ryanbrandenburg, can you please look at this? Thanks!

All 3 comments

I'm already doing this in my Startup.cs:

app.UseRequestLocalization(new RequestLocalizationOptions
{
    DefaultRequestCulture = new RequestCulture(culture: "de-DE", uiCulture: "de-DE"),
    SupportedUICultures = new List<CultureInfo>
    {
        new CultureInfo("de-DE")
    }
});

but still do _not_ get German validation messages.

Thanks for contacting us, @UweKeim.
@ryanbrandenburg, can you please look at this? Thanks!

You can find background here but the long and short of it is that there's no localization of error messages out of attributes likes [Required] by default. If this is something you would like you can voice your opinions on the above issue. In the meantime you can localize these elements yourself (as long as you can produce the translations) by following the advice from this issue.

I'm going to close this out but if you still have trouble let comment or re-open and we'll see what we can do.

Was this page helpful?
0 / 5 - 0 ratings