Identity icon indicating copy to clipboard operation
Identity copied to clipboard

How do I translate the default error messages to pt-BR?

Open adrianorc opened this issue 10 years ago • 1 comments

Hi,

I would like to translate the default error messseges of Identity (i.e. Passwords must have at least one digit ('0'-'9')) to my language.

It seems that this is done by using localization and resource files.

We tried to change the culture info. as stated in the docs https://docs.asp.net/en/latest/fundamentals/localization.html#working-with-resource-files, but it didn't work.

We also tried to create a resource file "Resources.pt-BR.resx" and translate the name/value of the messages e put into this file, but it also didn't worked.

How can we translate these messages?

adrianorc avatar Jul 07 '16 20:07 adrianorc

Wow,

we find the solution: http://stackoverflow.com/questions/19961648/how-to-localize-asp-net-identity-username-and-password-error-messages

Thanks

adrianorc avatar Jul 07 '16 20:07 adrianorc