Base solution for your next web application
Open Closed

IdentityResultExtensions - How to localize error text #12302


User avatar
0
dominici created

Dear support, I'm looking for identity result localization in Italian language.

I see that localization of identity result should be supported but I'm not sure how to do it.

The extension IdentityResultExtensions try to find a localized string from this localization source: AbpZeroConsts.LocalizationSourceName (hard coded) This const value is "AbpZero" so different from my project resources.

I've also tried to define my custom IdentityErrorDescriber. It works as expected but the next instruction identityResult.CheckErrors(LocalizationManager) obviously doesn't work and change all the error message to a generic error message.

So, before changing some Asp Net Zero code, I would like to know if the IdentityResultExtensions it's ok and what is the right way to localize it in Italian

Thanks in advance

Br, Fabrizio


1 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @dominici,

    Can you check this file? https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Localization/AbpZeroTemplate/AbpZeroTemplate-it.xml

    Also, this document may help https://aspnetboilerplate.com/Pages/Documents/Localization