Translation format

Translation format

Translation text could contain blocks that should be replaced by actual market (or outcome values).

Format Replaced with Example
{p1} First market item value (with index 0)
{
    "translation": {
        "ru": "{p1}-й сет/ матч"
    },
    "marketParameters": [1],
    "result": {
        "translation": {
            "ru": "1-й сет/ матч"
        }
    }
}
{p2} Second market item value (with index 1)
{
    "translation": {
        "ru": "Оба тайма тотал меньше {p2}"
    },
    "marketParameters": [1, 1.5],
    "translation": {
        "ru": "Оба тайма тотал меньше 1.5"
    }
}
{p3} Third market item value (with index 2)
{
    "translation": {
        "ru": "Больше {p3}"
    },
    "marketParameters": [1, 123213, 1.5],
    "translation": {
        "ru": "Больше 1.5"
    }
}
{s1} First outcome value (with index 0)
{
    "translation": {
        "ru": "Меньше {s1}"
    },
    "outcome.key.values": [0.5],
    "translation": {
        "ru": "Меньше 0.5"
    }
}
{s2} Second outcome value (with index 1)
{
    "translation": {
        "ru": "C {s1} по {s2} минуту"
    },
    "outcome.key.values": [1, 15],
    "translation": {
        "ru": "C 1 по 15 минуту"
    }
}
#competitor{p1} First market item value (with index 0) that will be translated by a separate request for a competitor
{
    "translation": {
        "ru": "#competitor{p1} - #competitor{p2}. Кто выше"
    },
    "marketParameters": [12, 22],
    "translation": {
            "ru": "Competitor12 - Competitor22"
    }
}
{Team{p1}} First market item value (with index 0) that will be translated separately by team
{
    "translation": {
        "ru": "Индивидуальный тотал {Team{p1}}"
    },
    "marketParameters": [1000],
    "requestToStrapi": {
        "teamId": 1000
    },
    "translation": {
        "ru": "Индивидуальный тотал Реал"
    }
}
#player{p1} First market item value (with index 0) translated separately for a player
{
    "translation": {
        "ru": "#player{p1}"
    },
    "marketParameters": [1000],
    "requestToStrapi": {
        "playerId": 1000
    },
    "translation": {
        "ru": "Рональду"
    }
}
#player{s1} First outcome value (with index 0) that will be translated by a separate request for a player
{
    "translation": {
        "sB_ru": "#player{s1} больше {p1}"
    },
    "marketParameters": [0.5],
    "outcome.key.values": [1000],
    "requestToStrapi": {
        "playerId": 1000
    },
    "translation": {
        "sB_ru": "Рональду больше 0.5"
    }
}
{Team{p1}} First market item value (with index 0) that will be translated as first or second team name in pair competitor1 - competitor2
{
    "translation": {
        "ru": "Индивидуальный тотал {Team{p1}}"
    },
    "marketParameters": [1],
    "eventCompetitors": "Реал - Барселона",
    "translation": {
        "ru": "Индивидуальный тотал Реал"
    }
}
{TeamID1} Remove tag, take all market parameters and translate by a separate request for team
{
    "translation": {
        "ru": "{TeamID1}Выйдет в 1/8 финала"
    },
    "marketParameters": [12323],
    "translation": {
        "ru": "Выйдет в 1/8 финала"
    }
}
{r1} Period value
{
    "translation": {
        "ru": "После {r1}-й минуты"
    },
    "period": 1,
    "subPeriod": 6000,
    "translation": {
        "ru": "После 1-й минуты"
    }
}
{r2} SubPeriod value
{
    "translation": {
        "ru": "C {r1}-й по {r2}-ю минуту включительно"
    },
    "period": 1,
    "subPeriod": 15,
    "translation": {
        "ru": "С 1-й по 15-ю минуту включительно"
    }
}

Team format

Format Replaced with
{Team1} First team name
{Team2} Second team name
{TeamID1} Name of the competitor whose ID is specified in the first market parameter. Mostly used for outright events with multiple competitors. The first market parameter is treated as a competitor ID, which is then matched against the event's competitors field to retrieve the competitor name.
{TeamID2} Name of the competitor whose ID is specified in the second market parameter. Similar to {TeamID1}, but uses the second market parameter. Commonly used for comparison markets (e.g., "{TeamID1} vs {TeamID2} Match-up").
{Team{p1}} First market item value (with index 0) that will be translated as first or second team name in the pair competitor1 - competitor2 based on the parameter value (1 or 2).