Skip to main content

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​

HeaderTypeRequiredDescription
Content-TypestringYesapplication/json

Request Body​

{
"texts": ["خصم 50%", "هدية مفاجئة", "حاول مرة أخرى"]
}
FieldTypeRequiredDescription
textsstring[]Yes1–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: texts missing, empty, too long, or a label over 80 characters
  • 500 Internal Server Error: Unexpected translation failure