Skip to main content
GET
Get Translation

Authorizations

ServiceToken <token>
string
header
required

You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Path Parameters

workspace
string
required

Workspace slug (staging, production, etc.)

locale_file
string
required

Locale file name (e.g., "fr.json", "es-MX.json", "auth.en.json")

Query Parameters

mode
enum<string>
default:draft

Mode to fetch translation (draft or live). By default, draft translation is returned.

Available options:
draft,
live

Response

Successfully retrieved translation content

filename
string

Name of the translation file

Example:

"fr.json"

locale
string

Locale code for the translation file

Example:

"fr"

locale_name
string

Human-readable name of the locale

Example:

"French"

namespace
string | null

Namespace for the translation file, if any

Example:

null

action
enum<string>

action done in the version compared to last commit.

Available options:
added,
updated,
deleted,
unchanged
Example:

"updated"

updated_at
string<date-time>

When the translation file was last updated

content
object

Translation key-value pairs