Glossary Term Translations

Note: Glossary API is still in beta and might be subject to change. Glossaries are available in the Business plan and above.

POST /v2/accounts/:account_id/glossaries/:glossary_id/terms/:term_id/translations

Create a new glossary term translation.

Parameters

Name Type Description
locale_code string Identifies the language for this translation
content
optional
string The content of the translation

Example Request

curl "https://api.phraseapp.com/api/v2/accounts/:account_id/glossaries/:glossary_id/terms/:term_id/translations" \
  -u USERNAME_OR_ACCESS_TOKEN \
  -X POST \
  -d '{"locale_code":"en-US","content":"My translated term"}' \
  -H 'Content-Type: application/json'
phraseapp glossary_term_translation create <account_id> <glossary_id> <term_id> \
--locale-code en-US \
--content "My translated term"

Response

Status: 201
{ "id": "abcd1234cdef1234abcd1234cdef1234", "locale_code": "en-US", "content": "Save", "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z" }

PATCH /v2/accounts/:account_id/glossaries/:glossary_id/terms/:term_id/translations/:id

Update an existing glossary term translation.

Parameters

Name Type Description
locale_code string Identifies the language for this translation
content
optional
string The content of the translation

Example Request

curl "https://api.phraseapp.com/api/v2/accounts/:account_id/glossaries/:glossary_id/terms/:term_id/translations/:id" \
  -u USERNAME_OR_ACCESS_TOKEN \
  -X PATCH \
  -d '{"locale_code":"en-US","content":"My translated term"}' \
  -H 'Content-Type: application/json'
phraseapp glossary_term_translation update <account_id> <glossary_id> <term_id> <id> \
--locale-code en-US \
--content "My translated term"

Response

Status: 200
{ "id": "abcd1234cdef1234abcd1234cdef1234", "locale_code": "en-US", "content": "Save", "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z" }

DELETE /v2/accounts/:account_id/glossaries/:glossary_id/terms/:term_id/translations/:id

Delete an existing glossary term translation.

Example Request

curl "https://api.phraseapp.com/api/v2/accounts/:account_id/glossaries/:glossary_id/terms/:term_id/translations/:id" \
  -u USERNAME_OR_ACCESS_TOKEN \
  -X DELETE
phraseapp glossary_term_translation delete <account_id> <glossary_id> <term_id> <id>

Response

Status: 204