Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a German Language Pack available #6659

Closed
UweKeim opened this issue Jan 14, 2019 · 3 comments
Closed

Is there a German Language Pack available #6659

UweKeim opened this issue Jan 14, 2019 · 3 comments
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates question

Comments

@UweKeim
Copy link

UweKeim commented Jan 14, 2019

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?

@UweKeim
Copy link
Author

UweKeim commented Jan 14, 2019

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.

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jan 14, 2019
@mkArtakMSFT
Copy link
Member

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

@ryanbrandenburg
Copy link
Contributor

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.

@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates question
Projects
None yet
Development

No branches or pull requests

4 participants