Skip to main content
POST
Create a locale provider mapping

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

X-PhraseApp-OTP
string

Two-Factor-Authentication token (optional)

Path Parameters

account_id
string
required

Account ID

Body

application/json
source_locale_code
string
required

The locale code of the source language (e.g. "en").

Example:

"en"

target_locale_code
string
required

The locale code of the target language (e.g. "de"). Must differ from source_locale_code.

Example:

"de"

service
string
required

The machine translation service to use for this locale pair. Must be a service enabled for the account.

Example:

"google_translate"

Response

Created

source_locale_code
string

The locale code of the source language for this mapping.

Example:

"en"

target_locale_code
string

The locale code of the target language for this mapping.

Example:

"de"

service
string

The translation service applied when translating from source to target locale.

Example:

"google_translate"