Multilingual Processing
Introduction
Provides multilingual conversion interfaces for bet information, game entries, etc.
API
Language List
1. Get Language Identifier List
Interface: POST /api/v1/common/get_language_list
Brief Description
Get the list of language identifiers supported by Hash Game
Success Example
{
"code": 0,
"msg": "SUCCESS",
"data": {
"list": [
{
"code": "zh-CN",
"name": "Simplified Chinese"
},
{
"code": "zh-TW",
"name": "Traditional Chinese"
},
{
"code": "ja-JP",
"name": "Japanese"
},
{
"code": "ko-KR",
"name": "Korean"
},
{
"code": "hi-IN",
"name": "Hindi"
}
]
}
}Error Response
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| code | Yes | int | Error code (refer to error code documentation) |
| msg | Yes | string | Error description |
Multilingual Information
1. Get Bet Information Multilingual Information
Interface: POST /api/v1/common/batch_get_bet_i18n
Brief Description
bet_info JSON Structure Example
[
{
"key": "Big",
"name": "Big",
"amount": 1,
"odds": 1.95,
"result": "win"
}
]For example, to display the value of name, you can get multilingual information through this interface
Request Parameters
| Parameter Name | Required | Type | Description | Example Value |
|---|---|---|---|---|
| game_code | Yes | string | Game type | pc28 |
| locales | No | string | Language identifiers (supports multiple language identifiers, separated by commas) | en-US,zh-TW |
Success Example
{
"code": 0,
"msg": "SUCCESS",
"data": {
"list": [
{
"locale": "en-US",
"items": [
{
"key": "BigEven",
"value": "Big Even"
},
{
"key": "BigOdd",
"value": "Big Odd"
}
]
},
{
"locale": "zh-TW",
"items": [
{
"key": "UltraBig",
"value": "Ultra Big"
},
{
"key": "UltraSmall",
"value": "Ultra Small"
}
]
}
]
}
}Error Response
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| code | Yes | int | Error code (refer to error code documentation) |
| msg | Yes | string | Error description |
2. Get Game Entry Multilingual Information
Interface: POST /api/v1/common/batch_get_entry_i18n
Brief Description
You can get multilingual information for game entries through this interface, such as Hash Big/Small, Hash Niu Niu, etc.
Request Parameters
| Parameter Name | Required | Type | Description | Example Value |
|---|---|---|---|---|
| entry_key | No | string | Game entry type | hxnn-1 |
| locales | No | string | Language identifiers (supports multiple language identifiers, separated by commas) | en-US,zh-TW |
Success Example
{
"code": 0,
"msg": "SUCCESS",
"data": {
"list": [
{
"locale": "en-US",
"items": [
{
"key": "hxdx-2",
"value": "1-min Hash Big/Small"
},
{
"key": "hxds-1",
"value": "Hash Odd/Even"
}
]
},
{
"locale": "zh-TW",
"items": [
{
"key": "hxds-3",
"value": "3-min Hash Odd/Even"
},
{
"key": "hxxy-1",
"value": "Lucky Hash"
}
]
}
]
}
}Error Response
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| code | Yes | int | Error code (refer to error code documentation) |
| msg | Yes | string | Error description |
3. Get Room Name Multilingual Information
Interface: POST /api/v1/common/batch_get_room_i18n
Brief Description
You can get multilingual information for game entries through this interface, such as Hash Big/Small, Hash Niu Niu, etc.
Request Parameters
| Parameter Name | Required | Type | Description | Example Value |
|---|---|---|---|---|
| room_id | No | int32 | Room ID | 1 |
| locales | No | string | Language identifiers (supports multiple language identifiers, separated by commas) | en-US,zh-TW |
Success Example
{
"code": 0,
"msg": "SUCCESS",
"data": {
"list": [
{
"locale": "en-US",
"items": [
{
"key": "1",
"value": "1-min Hash Big/Small"
},
{
"key": "2",
"value": "Hash Odd/Even"
}
]
},
{
"locale": "zh-TW",
"items": [
{
"key": "1",
"value": "3-min Hash Odd/Even"
},
{
"key": "2",
"value": "Lucky Hash"
}
]
}
]
}
}Error Response
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| code | Yes | int | Error code (refer to error code documentation) |
| msg | Yes | string | Error description |

