Translation Feed
It is recommended to use translations provided from Odds88. All translations are received via corresponding endpoints.
Translation changes feed is used to get information about what properties have translation updated. Depending on the type of message received from the feed one of the translation endpoints has to be called with id specified in the message.
Sports, Locations, Leagues rarely receive translation updates. Every event, market and selection inside the event are translated after being created.
Messages have following types and actions that have to be done upon receiving it:
0 - sport translation changed. Fetch and update translations for sport
1 - location translation changed. Fetch and update translations for location
2 - league translation changed. Fetch and update translations for league
3 - competitor translation changed. Fetch and update translations for competitor
4 - market translation changed. This type of translation can be ignored as every event has individual translations for selections and markets
5 - selection translation changed. This type of translation can be ignored as every event has individual translations for selections and markets
6 - event translation changed. Fetch translation for the event /api/translations/all/event/{eventId} and markets /api/translations/all/{eventId}/markets from this event. Update translations for event, markets and selection names
In case there is no translation for a certain language, it should fall back to English. In case there is no translation for English, it should fall back to a name sent in delta feed.
Last updated