Open Closed

Is there any way to add an entry in language text manually through UI without editing the json file? #3490


User avatar
0
christophe.baille created
  • ABP Framework version: v5.3.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

In our solution, we want the user to select a plan/edition while registering, on each plan, we want to show a description of the plan. There is a description field for that on the editionUI

As the platform will be multi language, I will replace "My description" by MyDescription and add "MyDescription": "My description" to the en.json file.

What I would like to do, as we might add new plan regularly, is to not have to add the entry on the json file each time we create a new plan as it require to deploy a new version of the solution.

I was then thinking to add the entry directly on the database through the UI of Language Texts, but I do not have possibility to do so as no button.

I then tried to add manually a record on [AbpLanguageTexts] table and all seems working well. It show it on the Language TextsUI and I can use it on my applcation

My question is, is there any way to have the permission of showing a button to let us add an entry?

I don't think I can modify "Language Management" module by myself as the code is not available.

Thanks


5 Answer(s)
  • User Avatar
    0
    barrett2474 created

    "as it require to deploy a new version of the solution" - that would surprise me as I would have thought you could deploy the *.json file and maybe restart the app...worth investigating?

  • User Avatar
    0
    christophe.baille created

    If I restart the application yes it works (in VS at least). The issue here is that even if no need to deploy, I will need to edit the code as the json file is part of the code. My purpose is to let an admin (who is not a developer at all) manage plans by himself all through UI

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You cannot add new localization keys according to the current design.

  • User Avatar
    0
    christophe.baille created

    Ok thanks, I will find another way then

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Your questions credit is refunded.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09