How set up parse Crowdin for my json file?

How can I configure crowdin to parse my json correctly? My structure consists of objects, but it turns out that the description field also appears for translation, although it should be in its place. What should I do? Example of my json:

{
    "auth": {
        "login": {
            "success": {
                "message": "Login success!",
                "description": "TODO"
            },
            "error": {
                "message": "Error: {error}",
                "description": "TODO",
                "default": {
                    "message": "Try again later.",
                    "description": "TODO"
                }
            }
        }
    },

Looks like Json with Context
Try this one JSON with context

Will require additional file change to add the "crowdinContext" under the related string in the file.

But file sample looks just like yours

{
    "campaign": {
        "text": "Email Campaign",
        "crowdinContext": "An email campaign in the context of marketing."
    },
    "lead": {
        "text": "Lead",
        "crowdinContext": "Marketing lead."
    }
}
1 Like