Localization upsert
Localization
We are using localization codes to show the proper messages. We can add the messages in English, Hindi, and any other language.
Steps to add the localization messages
Import the collection - Localization
Upsert new localization
State-level SUPERUSER has access to upsert the localization
Use superuser credentials and generate Auth token from Get_access_token API
Use Upsert_new_localization API to push new codes and pass superuser auth token in the request.
Change the tenantId according to environment and city
Module specific - "tenantId": "pg"
Locality specific - "tenantId": "pg.citya"
Add messages in English or Hindi
For English - "locale": "en_IN"
For Hindi - "locale": "hi_IN"
Add new json inside messages array and post the request (single or bulk codes can be added)
Ex-
"tenantId": "pg",
"messages": [
{
"code": "ACTION_TEST_ACCOUNTING_RECORDS",
"message": "Accounting Records",
"module": "rainmaker-common",
"locale": "en_IN"
}
]
Search messages
locale and tenantId are mandatory to search localization and we can pass modules in the search param to get module-specific localization messages.
All Rainmaker messages are available in releasekit