> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# popupTranslate

> Draft translations of a popup's copy into other languages, for review. Nothing is saved: pass the drafts you keep, edited or not, to `popupLocalizationSave`. A string the translator can't produce safely, or one longer than 5000 characters, is left out of `texts`. A language the translator fails on comes back with no texts: translate it again instead of saving it. Saving a draft replaces the language's saved copy, so add back any saved string you want to keep before you save. Returns null if no owned popup matches the id. Throws a 400 error with an extension code of INVALID_POPUP_TRANSLATION when `targetLocales` repeats a language, and TOO_MANY_LANGUAGES past 20 languages.

**Required scopes:** [`campaigns_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-campaigns_write)

## Arguments

**id** `ID!` *required*

The popup's `id`, or its `legacyId` from an earlier version of the Redo API.

**targetLocales** `[\[PopupLocale!\]!](/docs/api-reference/v3/reference/marketing/popup-locale)` *required*

The languages to translate into. At most 20.

## Returns

**popupTranslate** `[\[PopupTranslation!\]](/docs/api-reference/v3/reference/marketing/popup-translation)`

A popup's copy in one language.

**fields**

**locale** `[PopupLocale!](/docs/api-reference/v3/reference/marketing/popup-locale)` *required*

The language of this copy.

**texts** `[\[PopupTranslationText!\]!](/docs/api-reference/v3/reference/marketing/popup-translation-text)` *required*

The translated strings, by source `key`. A source string with no entry here renders in the source language.

**fields**

**key** `String!` *required*

The `key` of the source string this translates.

**text** `String!` *required*

The translated string.

## Example

```graphql theme={null}
mutation {
  popupTranslate(id: "...", targetLocales: DA) {
    locale
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.