Restructure the data, and add metadata to the JSON data files
This is the recommended format for the data in JSON files
{'additionalProperties':
{'properties':
{'description': {'type': 'string'},
'message': {'type': 'string'},
'placeholders': {'additionalProperties':
{'properties':
{'content': {'type': 'string'},
'example': {'type': 'string'}},
'required': ['content'],
'type': 'object'},
'type': 'object'}},
'required': ['message'],
'type': 'object'},
'type': 'object'}
The following is an example configuration (Can see the original file here)
{
"extensionName": {
"message": "Notify link clicks i18n",
"description": "Name of the extension."
},
"extensionDescription": {
"message": "Shows a notification when the user clicks on links.",
"description": "Description of the extension."
},
"notificationTitle": {
"message": "Click notification",
"description": "Title of the click notification."
},
"notificationContent": {
"message": "You clicked $URL$.",
"description": "Tells the user which link they clicked.",
"placeholders": {
"url" : {
"content" : "$1",
"example" : "https://developer.mozilla.org"
}
}
}
}