# GuideLanguages

The languages a guide is offered in and how far each is translated (list_languages, add_language).

Group: Objects.

## Fields

- `productId` (string, required): The guide's id.
- `original` (string, required): The language the guide is written in, as a two-letter code (update_guide language). A guide is never offered as a translation into it.
- `total` (number, required): How many texts the guide has to translate: every text of the draft and of its sales pages, each once however often it is used. Archived spots, chapters, collections, hikes and properties are left out.
- `languages` (array of objects, required): The languages the guide is offered in besides the one it is written in, English first, then German, French and Italian. Empty until one is added.
  - `lang` (string, required): The language: en (English), de (German), fr (French) or it (Italian).
  - `live` (boolean, required): true when buyers can read the guide and its sales pages in this language. set_language_live turns it on or off, and so does the creator with Live on the studio's Languages page. While it is true, every translation saved shows to buyers at once.
  - `translated` (number, required): How many of the guide's texts have a translation in this language. Below total, texts are left: list_untranslated_texts returns them. It falls when the creator changes a text, which then has no translation until it is translated again.
  - `updatedAt` (number, required): When the language or one of its translations last changed (Unix time in milliseconds).
- `canAdd` (array of strings, required): The languages add_language can still add: en, de, fr and it without the one the guide is written in and the ones it has.
- `studioUrl` (string, required): The guide's Languages page in the studio, where the creator reviews the translations, turns Live on or off and removes a language.

## Used by

- [list_languages](https://developers.sceniq.earth/reference/list_languages.md)
- [add_language](https://developers.sceniq.earth/reference/add_language.md)
- [set_language_live](https://developers.sceniq.earth/reference/set_language_live.md)
