Open Closed

How to configure the microservices application to use Language Management Module #3311


User avatar
0
renata.mendes created

**ABP Framework version: v5.1.4

UI type: Blazor Server

DB provider: EF Core**

Hello,

How can I to configure the application to get strings localization from database? Currently, the application is getting from resource file and in the ABP framework documentation it doesn't explain how this change is made.

https://docs.abp.io/en/commercial/latest/modules/language-management

Can you help, please? Thank you


7 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    You can use Language management as a different microservice. There is Extracting a Module as Microservice guide showing the Audit Logging module in particular however you can use the similar steps for other modules as well.

  • User Avatar
    0
    renata.mendes created

    Thank you for your reply. After further analysing microservice template, I realised that the Language management module is already inserted in Administration service.

    Languages Menu

    Language Texts Menu

    Language Texts Table

    The database table to Languague has all data that appears in the Languague Menu, but the Languague Text table is empty. Where does texts that appears in the Languague Text Menu come from and how do I can add others?

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    From the localization files at Domain.Shared layer. Each module defines its own localization with a Localization resource. You can check Localization docs for more information.

    On top of localization, we have the Language Management module which is pre-installed in Administration Service. You can check Language Management docs for more information.

  • User Avatar
    0
    renata.mendes created

    Hi,

    The localization resource files in Administration Service do not contain data displayed. I still don't understand where it comes from.

    Language Management module documentation does not contain information on how to add new texts.

    Thank you

  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    hi

    The database stores new records when the language text is updated in the UI. It uses the json files in modules by default.

  • User Avatar
    0
    renata.mendes created

    Hi,

    Thank you for your reply. How to add a button at the top of this page to create new language texts?

    Thank you

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    HI

    You can only edit the existing texts and can't add a new one.

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