Open Closed

JavaScript Localization is ineffective #8119


User avatar
0
cunyong.yu@vskysoft.com created
  • ABP Framework version: v7.2.2
  • UI Type:Blazor Server
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue: I have an abp blazor module project and I want to obtain localized resource text in JavaScript, but I cannot obtain it without it. It can be obtained normally on Razor pages. Localized resource files are defined in the Domain In the Shared project: I introduced resource files in DomainSharedModule.cs: The front-end has introduced the following scripts: But the client did not find the localized resource text I defined: And I found that all the tests in the resource files are empty:

3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Can you please check this document https://abp.io/docs/latest/framework/fundamentals/localization?_redirected=B8ABF606AA1BDF5C629883DF1061649A#localization

    Thank you,

  • User Avatar
    0
    cunyong.yu@vskysoft.com created

    My Domain.Shared project followed this tutorial to introduce resource files and tried it out in the Blazor project without any problems, but my Javascript files were added to Blazor.Server.Host in the wwwroot folder.Do I need to create the same Resorse resource class again in the Blazor.ServerHost project before JavaScript can use it. But he listed all the Resource files that I defined in the Domain.Shared project, only the content in the text is empty:

  • User Avatar
    0
    cunyong.yu@vskysoft.com created

    Hello ,

    Can you please check this document https://abp.io/docs/latest/framework/fundamentals/localization?_redirected=B8ABF606AA1BDF5C629883DF1061649A#localization

    Thank you,

    Hello, Is there anything else I haven't configured, or how can I troubleshoot the issue.

Made with ❤️ on ABP v9.1.0-preview. Updated on October 22, 2024, 09:35