# Translate a guide

A guide is written in one language and can be offered in English, German, French and Italian besides it. Sceniq Earth translates nothing itself: the creator writes the translations on the studio's Languages page, or their agent writes them with the operations on this page. Once a language is live, buyers who read Sceniq Earth in it get the guide and its sales pages in that language.

## What a translation is

A translation belongs to a text, not to a field. A text is what the creator wrote for buyers to read: in the guide (spots, chapters, collections, itineraries, hikes, helper pins, custom properties, photo captions and alt texts, the region and its areas) and on its sales pages. A text used in several places is translated once, and the translation shows in every place. Ids, categories, map and web addresses alone, dates, clock times, bare numbers, the names of operators, towns and stops, quoted reviews, photo credits and sources are not texts: they stay as they are in every language.

A translation is kept under the words it translates. So a text the creator changes has no translation until it is translated again: buyers read that one text as written, and the rest of the guide in their language.

Translations sit outside the draft. They need no [save_guide_changes](https://developers.sceniq.earth/reference/save_guide_changes.md) and no [publish_changes](https://developers.sceniq.earth/reference/publish_changes.md), and a key with the write scope writes them, whether the language is live or not. A language that is not live shows to nobody but the creator. Once a language is live, a saved translation shows to buyers at once.

## The steps

Only when the creator asks for a language. Never on your own initiative, never as a side effect of another task.

1. **Read the languages.** [list_languages](https://developers.sceniq.earth/reference/list_languages.md) returns the language the guide is written in (`original`), the languages it is offered in with `live` and `translated`, the guide's `total` of texts and `canAdd`.
2. **Add the language** if the guide does not have it: [add_language](https://developers.sceniq.earth/reference/add_language.md) with `en`, `de`, `fr` or `it`, never the language the guide is written in. It starts empty and not live. Adding it again changes nothing.
3. **Translate in a loop.** [list_untranslated_texts](https://developers.sceniq.earth/reference/list_untranslated_texts.md) returns the next texts without a translation, each with its `section` (the part of the guide), its `item` (a spot's title, a sales page's name) and its `label` (Short description), so you read the words in their place. Translate them and send them with [save_translations](https://developers.sceniq.earth/reference/save_translations.md) as `{ text, translation }` entries, `text` exactly as returned, character for character. Repeat both calls until `remaining` is 0.
4. **Hand it back.** Tell the creator which language you translated, how many texts, and what you were unsure of. They can review it on the studio's Languages page (`studioUrl` in the responses).
5. **Make it live when the creator asks.** [set_language_live](https://developers.sceniq.earth/reference/set_language_live.md) with `live: true` puts the guide and its sales pages in front of buyers in that language at once; a text still without a translation reads as the creator wrote it. `live: false` turns the language off and keeps its translations. The creator can do both with the Live switch on the Languages page.

When a call returns texts you already sent, their `text` did not match the guide's: a translation saved under other words is stored and shows nowhere.

## How to translate

- Translate faithfully, in the creator's voice: never add, drop or invent a fact, a price, a time or a rule.
- Numbers, units, currencies, dates and clock times stay as written.
- Place names, the names of businesses and people and other proper nouns stay as they are, unless the place has an established name in the target language (Vierwaldstättersee is Lake Lucerne in English).
- Keep the text's form: blank lines between paragraphs, lines that start with "- " as list items, and [label](https://...) links with the same address, translating the label only. A bare web address stays untouched.
- Tokens in braces such as {guide:count:spots} stay exactly as they are.
- A text that needs no change in the target language (a place name alone, Oeschinensee) is saved with the same words as its translation, so it no longer counts as untranslated.
- The copy rules hold in every language: no em dash character, no emoji, never promise updates or lifetime anything.
- When the language is already live, what you save shows to buyers at once: write the final wording, never a draft.

## Pictures with words in them

A picture on a sales page can carry words too: a slogan on a hero slide, a screenshot of the guide with the app's labels. [save_translations](https://developers.sceniq.earth/reference/save_translations.md) cannot reach those words, so readers of a language see the picture in the language it was made in, unless the picture has its own version in theirs: the same picture, made again in that language.

Never make a picture yourself: do not generate, redraw, edit or translate one, and take none from the web. A version comes only from a file the creator gives you.

1. **Read the pictures.** [list_language_pictures](https://developers.sceniq.earth/reference/list_language_pictures.md) returns every picture the guide's sales pages show, each once, with where it sits (`places`: the page and the place on it, such as Hero, picture 1 or Pitch, box 2), its `url` and size, and `version`: its version in the language, or `null`. It does not say which pictures have words in them: look at each one.
2. **Tell the creator** which pictures have words in them and no version, by where they sit, and ask whether they want to give you each one in the language. A picture without words needs no version.
3. **Set the version** from the creator's file: upload it with `target=blob` ([upload_media](https://developers.sceniq.earth/reference/upload_media.md)), then pass the `storageId`, `width` and `height` it returns to [set_picture_version](https://developers.sceniq.earth/reference/set_picture_version.md) within 10 minutes, with the picture's `mediaId`. The page keeps its crop and position for the picture, so ask for a file in the shape of the original.

A version belongs to the picture, not to a place: every sales page of the guide that shows the picture shows readers of the language the version, with the page's own crop, caption and order. Only the pictures of sales pages have versions: the hero's carousel and collage image, the pitch's boxes, the gallery and the checkout image. Photos of spots and chapters, review photos, the creator's own photo and videos have none.

Like a translation, a version sits outside the draft: no save, no publish, and the write scope is enough. While the language is not live, only the creator sees it, on the Languages page under each sales page's texts. Once the language is live, it shows to buyers at once. [remove_picture_version](https://developers.sceniq.earth/reference/remove_picture_version.md) takes a version away and deletes its file, only when the creator asks.

## What stays with the creator

| | An agent with a write key | Only the creator, in the studio |
|---|---|---|
| Add a language | Yes | Yes |
| Read the saved translations | Yes, with the read scope | Yes |
| Write and remove translations, in a live language too | Yes | Yes |
| Set or remove a picture's version from the creator's file, in a live language too | Yes | Yes |
| Make the picture in another language | No | Yes |
| Turn a language live or off, when the creator asks | Yes | Yes |
| Remove a language, with all its translations and picture versions | No | Yes |

A language goes live only when the creator says so: an agent calls [set_language_live](https://developers.sceniq.earth/reference/set_language_live.md) when asked, never as the last step of a translation on its own. No operation removes a language, whatever the key's scope, and the function behind that studio button refuses a key with `403 api_key_not_allowed`.

A language that is live shows every translation the moment it is saved, with the same write key and without a publish. So in a live language an agent saves final wording only, and changes a translation only when the creator asks.

## After the guide changes

When the creator edits the guide later, the changed texts have no translation until they are translated again. [list_languages](https://developers.sceniq.earth/reference/list_languages.md) shows `translated` below `total` for the language. Run step 3 again: [list_untranslated_texts](https://developers.sceniq.earth/reference/list_untranslated_texts.md) returns exactly the texts that are open, the new and the changed ones. If the language is live by then, buyers read each of them the moment it is saved.

## Read and change what is saved

[list_translations](https://developers.sceniq.earth/reference/list_translations.md) returns the texts that have a translation in a language, each beside its translation and with the same `section`, `item` and `label` as an open text. A key with the read scope is enough. Use it to proofread a language, to change one translation the creator named, and before translating changed texts, so a term keeps the word the language already uses for it.

- The whole language, a page at a time: call it with no filter, then again with `offset` set to the `next` of the answer, until `next` is `null`.
- One part of the guide: `section` (`sales`, `details`, `spots`, `properties`, `photos`, `chapters`, `collections`, `itineraries`, `hikes`, `helpers`).
- One sentence or one spot: `query` returns the texts whose words, translation or item hold it, in any case. A word of the sentence finds the sentence; a spot's title finds that spot's texts.

To change a translation, send its `text` exactly as returned with the new wording to [save_translations](https://developers.sceniq.earth/reference/save_translations.md). A translation whose text the creator has changed since is not listed: it shows nowhere, and the changed text is open again.

## Limits

| Limit | Value |
|---|---|
| Texts per [list_untranslated_texts](https://developers.sceniq.earth/reference/list_untranslated_texts.md) or [list_translations](https://developers.sceniq.earth/reference/list_translations.md) call | 200 (100 unless `limit` says otherwise) |
| Entries per [save_translations](https://developers.sceniq.earth/reference/save_translations.md) call | 500 |
| One translation | 20,000 characters |
| Request body | 2 MB: send long texts in smaller batches |

A refused [save_translations](https://developers.sceniq.earth/reference/save_translations.md) call saves nothing: a language the guide is not offered in, too many entries, a translation that is too long, or a `text` with no words (a number, a time, a web address), which is never translated.
