Edit translations

Open a connected document in Studio, correct its translations beside the source, and keep the edits as unsent work until you propose them.

Studio opens the content your integrations already translate and lets you correct a translation beside its source. Your corrections stay in Lingo.dev as unsent edits. Nothing changes in GitHub, Payload, Zendesk or WordPress until you group the edits into a proposal and send it.

The source is read-only. Studio changes existing translated text and fills in missing translations in key-value files. It keeps the file's structure, markup, comments and formatting, and it never deletes files, keys or paragraphs.

Open a document #

In Studio, open Integrations and select a connection. Its documents appear in the sidebar under Files or Documents, and a footer below them counts the files with unsent edits. Select a document to open it in the editor, then choose the language under Target locale.

ConnectionWhat the sidebar lists
GitHubThe files that the repository's .lingo/config.json selects. A connection that reaches several repositories lists them under Repositories; a connection with one repository starts at its files.
Payload CMSThe collections and globals the connection localizes, with their documents.
Zendesk Help CenterThe articles the connection selects one by one. Articles translated only because their category or section is selected are not listed.
WordPressThe selected post types and their published posts. Each post opens as Title and excerpt and as Content.

A GitHub file tree starts below the folder that holds all the selected files, such as src/content/en, and a chain of folders without files shows as one row. Search files narrows the tree to files whose name contains the text. Search documents finds a Payload connection's documents by title, and Search articles narrows a Zendesk connection's articles by title. The Only changed filter button shows only documents with unsent edits, and a dot marks each of them.

Opening a GitHub file reads the repository's default branch through the connected installation. The repository needs a valid .lingo/config.json there; a missing or invalid configuration shows as an error when you open a file. Browsing creates no commit and no translation run, and uses no translation credits.

What Studio can edit #

ContentWhat opens in the editor
GitHub filesJSON, JSONC, YAML, gettext PO, Xcode string catalogs (.xcstrings), Markdown, MDX, Markdoc and HTML
Payload CMSLocalized text, textarea and Lexical rich-text fields
Zendesk Help CenterArticle bodies
WordPressPost title, excerpt and block content

A file in another format opens with a message that Studio can't edit its format yet. If the source or its translation doesn't parse, the editor asks you to fix it at the provider first.

Edit a translation #

Type over a translated value. Studio saves the edit as you type, and the editor's bar shows Saving…, then Saved with the number of edits in this locale. If a save fails, the bar shows Not saved. with Try again; keep the page open until the edit is saved. If you edit the same document in another tab, Studio asks you to Load the latest draft before you continue.

Key-value files and prose work differently:

  • Key-value files such as JSON, JSONC, YAML, PO and string catalogs show each key beside its source value. A key the translation lacks, including every key of a translation file that does not exist yet, is an empty field. Fill it to add the translation; sending writes it where the source holds the key. An array entry that would leave a gap shows Translate {key} first until the entry before it is translated. Search keys or text… narrows the list.
  • Prose such as Markdown, Markdoc, HTML, Payload rich text and Zendesk articles shows the translation block by block. Select a translated block to find its original, or switch to Full original to read the source as a whole. Prose can't gain a passage, so a source paragraph without a translated block reads as Not translated yet.

Placeholder checks run as you type. A missing, extra or reordered token, a changed argument type or broken message syntax shows under the edit, and Restore token puts a missing token back. Errors must be fixed before the edit can be sent. Warnings can be accepted with Confirm warnings, which applies to that exact text: changing the text asks again.

Only changed in the editor's top bar narrows the document to the units you edited, each with the provider's current text and its check. Undo edit removes one edit, and Discard all in the bottom bar deletes every edit to this document in the open locale. Discarding can't be undone.

When a translation doesn't exist yet #

Studio fills missing keys inside key-value files, and sending can create a missing GitHub translation file in those formats. A prose translation the provider doesn't hold yet can't be typed into, so the editor says what creates it:

  • GitHub: a push to the default branch that changes the file, or /lingo translate <path> on a pull request, when .lingo/config.json translates it. See Run commands on a pull request.
  • Payload and Zendesk: a Sync of that document or article on its integration page. Starting a Sync needs the permission to manage integrations.
  • WordPress: the editor shows the source text to translate, and sending your edits creates the translation as a draft.

When the document changes at the provider #

An unsent edit remembers the text you saw. Before a proposal is sent, Studio reads each document again and checks every edit against it:

Check resultWhat to do
Someone else changed the textChoose Keep my text or Use theirs in the editor.
The text movedProse paragraphs are found by position, so an edit made before the document changed is listed above it. Choose Confirm new place, or Keep here when the text you edited is still at its old place.
The text is goneThe edit can't be sent. Copy anything you want to keep, then choose Remove edit.
The file can't hold the editThe edit would change the file's structure, for example a # at the start of a paragraph that turns it into a heading, or a YAML value repeated elsewhere through an alias. Change the text so it stays plain text.

Key-value keys keep their place across revisions, so their conflicts are settled in place under Only changed.

Unsent edits #

Unsent edits are personal: only you see and send them. The proposals they become are shared with your team.

Proposals → Changed files lists every file you changed that isn't sent yet, with its number of edits. Select a file to open it in the editor, or choose Discard to delete its edits in every locale. A file already in a Draft proposal links to that proposal instead. Unsent edits, including those in a Draft proposal that was never sent, are deleted after 14 days without changes. Creating a proposal doesn't stop that clock: send it before then, or copy any text you want to keep.

A file in a sent proposal can't take new edits; the editor says so and offers Return to draft. Proposals explains how to group edits, send them, and follow them to publication.