Skip to content

After successfully setting up the master data folder, the "mp" folder can be accessed in the frontend. However, there is an issue with the variable name "TENANT_TENANTS_MP" that is being displayed. To resolve this, consider adjusting the naming convention for better clarity and consistency in the code. #272

Closed Answered by jagankumar-egov
Amitsinghongraph asked this question in Q&A
Discussion options

You must be logged in to vote

For every code that is added to the tenant's master, the frontend will display a new code.
It is necessary to map code messages to support different languages.

It's necessary to add a code message pair to the localization service.
a sample pair of keys and values

{
        "code": "TENANT_TENANTS_MP",
        "message": "Madhya Pradesh",  // as per requirement
        "module": "rainmaker-common",
        "locale": "en_IN"
    }

To learn more about it, refer to the document below.
https://core.digit.org/platform/core-services/localization-service#steps-to-integration

The prefix is TENANT_TENANTS_ because the master name is tenant and the module name is tenants.

Clear the browser cache an…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jagankumar-egov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants