Skip to content

Localization Table

Generate a localization table asynchronously from source files.

Endpoint: POST /translation/localization-table

{
"sourceLanguage": "en",
"targetLanguages": ["de", "fr", "es"],
"sourceFile": "https://example.com/localization.json",
"format": "json"
}

Parameters:

  • sourceLanguage: Source language code
  • targetLanguages: Array of target language codes
  • sourceFile: URL or path to source localization file (optional)
  • format: File format (json, csv, xlsx, etc.) (optional)

Success Response (200)

{
"status": "ok",
"timestamp": "2025-01-12T22:31:48.856Z",
"data": {
"id": "localization-123456",
"status": "pending"
}
}
Terminal window
curl -X POST "https://platform.algebras.ai/api/v1/translation/localization-table" \
-H "X-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"sourceLanguage": "en",
"targetLanguages": ["de", "fr", "es"],
"sourceFile": "https://example.com/localization.json",
"format": "json"
}'

Retrieve a list of all localization table generation tasks.

Endpoint: GET /translation/localization-table

  • limit: Maximum number of results to return (optional)
  • offset: Number of results to skip (optional)

Success Response (200)

{
"status": "ok",
"timestamp": "2025-01-12T22:31:48.856Z",
"data": [
{
"id": "localization-123456",
"status": "completed",
"sourceLanguage": "en",
"targetLanguages": ["de", "fr"],
"createdAt": "2025-01-12T20:00:00.000Z"
}
]
}
Terminal window
curl -X GET "https://platform.algebras.ai/api/v1/translation/localization-table?limit=10&offset=0" \
-H "X-Api-Key: your_api_key_here"

Retrieve details of a specific localization table by ID.

Endpoint: GET /translation/localization-table/{id}

  • id: Localization table ID

Success Response (200)

{
"status": "ok",
"timestamp": "2025-01-12T22:31:48.856Z",
"data": {
"id": "localization-123456",
"status": "completed",
"sourceLanguage": "en",
"targetLanguages": ["de", "fr", "es"],
"createdAt": "2025-01-12T20:00:00.000Z",
"completedAt": "2025-01-12T20:05:00.000Z"
}
}
Terminal window
curl -X GET "https://platform.algebras.ai/api/v1/translation/localization-table/localization-123456" \
-H "X-Api-Key: your_api_key_here"

Get a download URL for a completed localization table file.

Endpoint: GET /translation/localization-table/{id}/download

  • id: Localization table ID

Success Response (200)

{
"status": "ok",
"timestamp": "2025-01-12T22:31:48.856Z",
"data": {
"downloadUrl": "https://cdn.algebras.ai/files/localization-123456.zip",
"expiresAt": "2025-01-13T22:31:48.856Z"
}
}
Terminal window
curl -X GET "https://platform.algebras.ai/api/v1/translation/localization-table/localization-123456/download" \
-H "X-Api-Key: your_api_key_here"