How to use and configure localization
This screen used to add, update, search and delete localization key and value to the application
Feature
Bulk upload(Excel).
Bulk module search.
Module and language-wise search.
Table view with edit and delete.
Validation of duplicate data.
Global search.
Export as CSV.
Search localization
Users can search localization for any modules selecting search filters as mentioned screenshot.
Select Locale and click on Search.
Users can do a global search entering the specified search string.
Create Localization
Search for modules and Locale you want to add localization and click on search.
Click on + button right top of the result card, it will show fields to add localization, enter localization code, message, module, and Locale then clicks the OK icon.
Update Localization
Search for modules and Locale you want to add localization and click on search.
Search or go to a particular row on the table and click on edit. Update the values as needed for your requirement then click on the OK button.
Delete localization key
Search for modules and Locale you want to add localization and click on search.
Search or go to a particular row on the table and click on edit. Update the values as needed for your requirement then click on the OK button.
It will show confirmation message, click on Ok icon, and delete the record.
Filter the records
Search for modules and Locale you want to add localization and click on search.
Click filters in 1st row, select the related filters, click on other places, it will filter the record.
Bulk Upload
Click on + button top right of the localization screen, upload the document that is having the data in the form of the code, messages, module, and locale, then click on upload. It will take some time to upload wait for the same. If any error in the data it through the exception.
PFA of bulk upload template.
Export as CSV.
Top right of the result card click on the 1st icon, then click on export.
MDMS changes for this feature.
Need to add 2 properties as below to state info master.
JSON -
{
"languages":[
{
"label":"ENGLISH",
"value":"en_IN"
},
{
"label":"हिंदी",
"value":"hi_IN"
},
{
"label":"ಕನ್ನಡ",
"value":"kn_IN"
}
],
"localizationModules":[
{
"label":"rainmaker-abg",
"value":"rainmaker-abg"
},
{
"label":"rainmaker-common",
"value":"rainmaker-common"
},
{
"label":"rainmaker-noc",
"value":"rainmaker-noc"
},
{
"label":"rainmaker-pt",
"value":"rainmaker-pt"
},
{
"label":"rainmaker-uc",
"value":"rainmaker-uc"
},
{
"label":"rainmaker-pgr",
"value":"rainmaker-pgr"
},
{
"label":"rainmaker-tl",
"value":"rainmaker-tl"
},
{
"label":"rainmaker-hr",
"value":"rainmaker-hr"
},
{
"label":"rainmaker-test",
"value":"rainmaker-test"
},
{
"label":"finance-erp",
"value":"finance-erp"
},
{
"label":"rainmaker-receipt",
"value":"rainmaker-receipt"
}
]
}
Add iframe configuration in bellow URL
https://github.com/egovernments/ukd-mdms-data/blob/UAT/data/uk/common-masters/uiCommonConstants.json
"ui-localisation":{
"iframe-routes":{
"localization":{
"routePath":"/ui-localisation/#/egov-ui-framework/egov-localization/localization",
"isOrigin":true
}
}
}
Add a menu action
https://github.com/egovernments/ukd-mdms-data/tree/UAT/data/uk/ACCESSCONTROL-ACTIONS-TEST
{
"id": 1889,
"name": "rainmaker-localization-screen",
"url": "url",
"displayName": "Localization",
"orderNumber": 5,
"parentModule": "",
"enabled": true,
"serviceCode": "",
"code": "",
"path": "Localization",
"navigationURL": "integration/ui-localisation/localization",
"leftIcon": "places:business-center",
"rightIcon": "",
"queryParams": ""
}
Add role action mapping
Note: URL and number of actionid will depend on the environment to environment, please refer your environment id.
11. Build URL
https://builds.egovernments.org/job/builds/job/frontend/job/localization/
12. Branch
Rainmker-v1-uk-new