Chad Boettcher
Chad Boettcher

Reputation: 7

How to localize or change text for the Identity Management menu items

I'm trying to change the text for the "Identity management" menu item which is added up in the ABP framework somewhere. Is it possible find the localization key somewhere to add it to my en.json file or do I have to plunk through the context.Menu.GetAdministration() menu items in my MenuContributor and hack it there? I've tried a bunch of different variations in the en.json file to no avail.

Thanks.

Upvotes: 0

Views: 319

Answers (1)

向洪林
向洪林

Reputation: 96

See Abp Localization Docs

  1. Extend an existing resource JSON file

    • zh-Hans
    {
      "culture": "zh-Hans",
      "texts": {    
        "Menu:IdentityManagement": "身份管理"    
      }
    }
    
    • en
    {
      "culture": "en",
      "texts": {
        "Menu:IdentityManagement": "Identity"
      }
    }
    
  2. Extending IdentityResource

    options.Resources
       .Get<IdentityResource>()
       .AddVirtualJson("/Localization/LocalizeModuleTest");
    
  3. Effect is as follows

Upvotes: 3

Related Questions