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

How about internationalization (i18n) and translation #14433

Closed
epsitec opened this issue Sep 20, 2019 · 2 comments
Closed

How about internationalization (i18n) and translation #14433

epsitec opened this issue Sep 20, 2019 · 2 comments
Labels
Blazor doc-enhancement Source - Docs.ms Docs Customer feedback via GitHub Issue
Milestone

Comments

@epsitec
Copy link

epsitec commented Sep 20, 2019

Hardcoding the validation messages into C# code attributes is a straightforward solution for simple projects. But how would you integrate this with I18N?

public class ExampleModel
{
    [Required]
    [StringLength(10, ErrorMessage = "Name is too long.")] // <-- I18N issue
    public string Name { get; set; }
}

I feel that as of today, Blazor is not yet ready for real-world scenarios because of this. Living in a multilingual country (Switzerland), where we need to generate UIs at least in German, French and English, and ideally also in Italian (and theoretically even in Romansh).

Did I miss some underlying mechanism which would allow me to replace hardcoded strings with culture dependent content?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@guardrex
Copy link
Collaborator

There are some existing engineering issues. Search over there and see what you can find:

@guardrex
Copy link
Collaborator

Hello @epsitec ... Recommend that you open over on the engineering issue. This probably has to go into design in the framework, not something that docs alone can address. Search open and closed issues first; and if you don't find a related issue on globalization/localization that matches your ask, open a new issue ...

https://github.com/aspnet/AspNetCore/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blazor doc-enhancement Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Archived in project
Development

No branches or pull requests

3 participants