Workflows
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 and no publish_changes, 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.
- Read the languages. list_languages returns the language the guide is written in (
original), the languages it is offered in withliveandtranslated, the guide'stotalof texts andcanAdd. - Add the language if the guide does not have it: add_language with
en,de,frorit, never the language the guide is written in. It starts empty and not live. Adding it again changes nothing. - Translate in a loop. list_untranslated_texts returns the next texts without a translation, each with its
section(the part of the guide), itsitem(a spot's title, a sales page's name) and itslabel(Short description), so you read the words in their place. Translate them and send them with save_translations as{ text, translation }entries,textexactly as returned, character for character. Repeat both calls untilremainingis 0. - 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 (
studioUrlin the responses). - Make it live when the creator asks. set_language_live with
live: trueputs 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: falseturns 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 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 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.
- Read the pictures. list_language_pictures 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), itsurland size, andversion: its version in the language, ornull. It does not say which pictures have words in them: look at each one. - 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.
- Set the version from the creator's file: upload it with
target=blob(upload_media), then pass thestorageId,widthandheightit returns to set_picture_version within 10 minutes, with the picture'smediaId. 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 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 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 shows translated below total for the language. Run step 3 again: list_untranslated_texts 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 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
offsetset to thenextof the answer, untilnextisnull. - One part of the guide:
section(sales,details,spots,properties,photos,chapters,collections,itineraries,hikes,helpers). - One sentence or one spot:
queryreturns 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. 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 or list_translations call | 200 (100 unless limit says otherwise) |
| Entries per save_translations call | 500 |
| One translation | 20,000 characters |
| Request body | 2 MB: send long texts in smaller batches |
A refused save_translations 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.