Translate Lucky Wheel Labels (v1)
Method & Path
POST /api/v1/public/dollab/translate
Actual path: /v1/public/dollab/translate
Description
Translates lucky-wheel slice labels to Turkish with Google Cloud Translation so every prize name is translated in one request. Used by the public /dollab page when the visitor picks Türkçe.
Authentication
None. Persona: Customer (anyone with the link). Workspace Owner / Staff / Admin: not used.
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | application/json |
Request Body
{
"texts": ["خصم 50%", "هدية مفاجئة", "حاول مرة أخرى"]
}
| Field | Type | Required | Description |
|---|---|---|---|
texts | string[] | Yes | 1–24 labels, each ≤ 80 characters |
Response 200 OK
{
"translations": ["%50 indirim", "Sürpriz hediye", "Tekrar dene"]
}
The array matches texts order and length.
Common Errors
- 400 Bad Request:
textsmissing, empty, too long, or a label over 80 characters - 500 Internal Server Error: Unexpected translation failure