Open Closed

Unable to translate strings after customizing the Identity Management page #9204


User avatar
0
DecisionTree.Dev created

The translation key/value has been added to the en.json file:

The corresponding placeholder in the template:

How it looks:

What do I miss here?


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

    hi

    Can you share the JSON output of https://your_api_wesite/api/abp/application-localization?cultureName=en&onlyDynamics=false

    You can also check the UsersSearch info in it.

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    DecisionTree.Dev created

    I sent the file from zhoulexuan123@gmail.com and it seems like the key/value is correct in it.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try:

    1. Clear redis
    2. Placeholder="@L["UsersSearch"].Value"

    If it's still not working, can you share a simple project that reproduces the problem?

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    DecisionTree.Dev created

    It turns out that I forgot to inject the service @inject IStringLocalizer<> L, it works now. Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on May 12, 2025, 05:22