Open Closed

Localization of overridden account pages ( Login / Register etc ) #7185


User avatar
0
okains created
  • ABP Framework version: v8.0
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server )
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: Login / Register pages not picking up on the DomainShared/Localization resources
  • Steps to reproduce the issue:

I have overridden the Login / Register pages as so:

I need to provide Localized strings but any new strings I add in the Domain.Shared/Localisation en.json are not recognized here:

Do I need to provide a separate resource file for the account pages? It seems like I am missing something here, please let me know what I need to do to properly localize the overridden Account / Register pages.

Thanks,

Karim


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Did you use SITOResource as a localized resource in your custom page?

    @inject IHtmlLocalizer<SITOResource> L
    
  • User Avatar
    0
    okains created

    Ah yes, I was using the AccountResource instead of my SITOResource. I should have seen that! Thanks for pointing that out, ill close this now.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11