translationsRegister mutation

Version 2020-01 (Release candidate)

Creates or updates translations.

Required access

write_translations access scope

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

resourceId ( ID! ) required

ID of a translatable resource.

translations ( [TranslationInput!]! ) required

Specifies the input fields for a translation.

TranslationInput fields

key (String!) Required

The key of the translation.

locale (String!) Required

The locale of the translation.

translatableContentDigest (String!) Required

The digest (hash) of the content being translated.

value (String!) Required

The value of the translation.

Return fields

translations ([Translation!])

The translations that were created or updated.

userErrors ([TranslationUserError!]!)

List of errors that occurred executing the mutation.

Version 2019-10 (Latest)

Creates or updates translations.

Required access

write_translations access scope

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

resourceId ( ID! ) required

ID of a translatable resource.

translations ( [TranslationInput!]! ) required

Specifies the input fields for a translation.

TranslationInput fields

key (String!) Required

The key of the translation.

locale (String!) Required

The locale of the translation.

translatableContentDigest (String!) Required

The digest (hash) of the content being translated.

value (String!) Required

The value of the translation.

Return fields

translations ([Translation!])

The translations that were created or updated.

userErrors ([TranslationUserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up