Open Closed

How do Localization for abp.io #9368


User avatar
0
Vineforce_Dev1 created

How i do localization for payment module that is added by abp add-module Volo.Payment this command i have already generate angular html code how i do localization for that some fileds are in spanish and some are in english

Fecha de creación Min Fecha de creación máx. Payment type Status Plz suggest how do localization

how add one row in this page


5 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    how add one row in this page

    Hi, in the Language Texts page, you can't create a new localization entry, instead it's used to dynamically change an existing localization entry from a single point.

    Fecha de creación Min Fecha de creación máx. Payment type Status Plz suggest how do localization

    If you want to localize these you can filter through the PaymentResource, find the localization key, and update its value:

    If you want to localize it from English to Espanol, then select English as the base culture and Esponal as the target culture as the figure above. Please refer to the documentation for further info: https://abp.io/docs/latest/modules/language-management#language-texts / It's explained in here.

  • User Avatar
    0
    Vineforce_Dev1 created

    Then how i change localization for these two Fecha de creación Min Fecha de creación máx. entries

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    [Vineforce_Dev1] said: Then how i change localization for these two Fecha de creación Min Fecha de creación máx. entries

    Here are the localization keys for the text you asked: PaymentRequests:CreationDateMin and PaymentRequests:CreationDateMax . You can search for that name, and then localize them as you wish.

  • User Avatar
    0
    Vineforce_Dev1 created

    Plz add and code for en.json

    { "culture": "en", "texts": { "PaymentRequests:CreationDateMin": "Minimum Creation Date", "PaymentRequests:CreationDateMax": "Maximum Creation Date", "PaymentRequests:PaymentType": "Payment Types", "PaymentRequests:Status": "Status", "PaymentRequests:Search": "Search", "PaymentRequests:TotalPrice": "Total Price", "PaymentRequests:Currency": "Currency", "PaymentRequests:State": "State", "PaymentRequests:Gateway": "Gateway", "PaymentRequests:ExternalSubscriptionId": "External Subscription ID", "Plans": "Plans"

    }
    

    }

    It Provide me working code.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Plz add and code for en.json

    { "culture": "en", "texts": { "PaymentRequests:CreationDateMin": "Minimum Creation Date", "PaymentRequests:CreationDateMax": "Maximum Creation Date", "PaymentRequests:PaymentType": "Payment Types", "PaymentRequests:Status": "Status", "PaymentRequests:Search": "Search", "PaymentRequests:TotalPrice": "Total Price", "PaymentRequests:Currency": "Currency", "PaymentRequests:State": "State", "PaymentRequests:Gateway": "Gateway", "PaymentRequests:ExternalSubscriptionId": "External Subscription ID", "Plans": "Plans"

    } 
    

    }

    It Provide me working code.

    You can use this approach for any of our modules and update any localization you want. But, unfortunately, currently, when you install an ABP Module, we don't include the localizations for each module, because if we do this, and update localizations/or add new localizations, you would not get the localization entries and it could cause missed localization entries in your application. This is why we don't provide all localization values for the relevant modules.

    Regards.

Boost Your Development
ABP Live Training
Packages
See Trainings
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 June 13, 2025, 11:37