{
  "@type": "HeadlessPages",
  "@id": "/_api/headless_pages/2012",
  "uid": 2012,
  "title": "Translations",
  "slug": "/features/translations",
  "seo_title": "",
  "description": "Strict, fallback and free mode, and the default-language uid that links them.",
  "no_index": 0,
  "no_follow": 0,
  "canonical_link": null,
  "og_title": "",
  "og_description": null,
  "og_image": [
    {
      "uid": 2024,
      "name": "translations.jpg",
      "extension": "jpg",
      "publicUrl": "https://typo3.example/fileadmin/_processed_/1/9/csm_translations_38dd7c8233.jpg",
      "mimeType": "image/jpeg",
      "fileSize": 156553,
      "metadata": {
        "title": null,
        "alternative": "Two sheets with the same layout, one on cyan and one on yellow paper, a steel ruler laid across both",
        "description": null,
        "copyright": null
      },
      "width": 1536,
      "height": 806
    }
  ],
  "breadcrumbs": [
    {
      "uid": 2000,
      "title": "tca-api-headless",
      "nav_title": "",
      "url": "https://typo3.example/website/",
      "doktype": 1
    },
    {
      "uid": 2002,
      "title": "Features",
      "nav_title": "",
      "url": "https://typo3.example/website/features",
      "doktype": 1
    },
    {
      "uid": 2012,
      "title": "Translations",
      "nav_title": "",
      "url": "https://typo3.example/website/features/translations",
      "doktype": 1
    }
  ],
  "languages": [
    {
      "languageId": 0,
      "locale": "en-US",
      "hreflang": "en",
      "title": "English",
      "url": "https://typo3.example/website/features/translations",
      "available": true,
      "active": true
    },
    {
      "languageId": 1,
      "locale": "de-DE",
      "hreflang": "de",
      "title": "German",
      "url": "https://typo3.example/website/de/funktionen/uebersetzungen",
      "available": true,
      "active": false
    }
  ],
  "meta": {
    "robots": "index,follow",
    "canonical": "https://typo3.example/website/features/translations",
    "schema": {
      "@context": "https://schema.org",
      "@type": "WebPage",
      "url": "https://typo3.example/website/features/translations",
      "name": "Translations",
      "inLanguage": "en",
      "description": "Strict, fallback and free mode, and the default-language uid that links them."
    },
    "alternates": [
      {
        "hreflang": "en",
        "href": "https://typo3.example/website/features/translations"
      },
      {
        "hreflang": "de",
        "href": "https://typo3.example/website/de/funktionen/uebersetzungen"
      },
      {
        "hreflang": "x-default",
        "href": "https://typo3.example/website/features/translations"
      }
    ]
  },
  "regions": {
    "intro": [
      {
        "uid": 2074,
        "CType": "textmedia",
        "header": "Translations",
        "header_layout": 0,
        "header_position": "",
        "header_link": null,
        "subheader": "",
        "bodytext": [
          {
            "_type": "block",
            "_key": "k0",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k1",
                "marks": [],
                "text": "Content follows the "
              },
              {
                "_type": "span",
                "_key": "k2",
                "marks": [
                  "code"
                ],
                "text": "fallbackType"
              },
              {
                "_type": "span",
                "_key": "k3",
                "marks": [],
                "text": " of the site language. This site's German is "
              },
              {
                "_type": "span",
                "_key": "k4",
                "marks": [
                  "em"
                ],
                "text": "strict"
              },
              {
                "_type": "span",
                "_key": "k5",
                "marks": [],
                "text": ", Kettenblatt's German is "
              },
              {
                "_type": "span",
                "_key": "k6",
                "marks": [
                  "em"
                ],
                "text": "free"
              },
              {
                "_type": "span",
                "_key": "k7",
                "marks": [],
                "text": ". Pages keep the uid of the default language, so a frontend links its languages by uid; content element uids depend on the mode."
              }
            ]
          }
        ],
        "assets": [
          {
            "uid": 2024,
            "name": "translations.jpg",
            "extension": "jpg",
            "publicUrl": "/fileadmin/website/plates/translations.jpg",
            "mimeType": "image/jpeg",
            "fileSize": 156553,
            "metadata": {
              "title": null,
              "description": null
            }
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ],
    "main": [
      {
        "uid": 2075,
        "CType": "text",
        "header": "Strict and fallback",
        "header_layout": 0,
        "header_position": "",
        "header_link": null,
        "subheader": "",
        "bodytext": [
          {
            "_type": "block",
            "_key": "k0",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k1",
                "marks": [],
                "text": "The page brings the content elements of the default language with their translations. "
              },
              {
                "_type": "span",
                "_key": "k2",
                "marks": [
                  "em"
                ],
                "text": "strict"
              },
              {
                "_type": "span",
                "_key": "k3",
                "marks": [],
                "text": " leaves out what is not translated, "
              },
              {
                "_type": "span",
                "_key": "k4",
                "marks": [
                  "em"
                ],
                "text": "fallback"
              },
              {
                "_type": "span",
                "_key": "k5",
                "marks": [],
                "text": " keeps it in the default language. The Colophon of this site exists in English only, so the German lookup finds nothing:"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k6",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k7",
                "marks": [
                  "code"
                ],
                "text": "GET /de/_api/headless_pages?path=/colophon"
              }
            ]
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      },
      {
        "uid": 2076,
        "CType": "text",
        "header": "Free mode",
        "header_layout": 0,
        "header_position": "",
        "header_link": null,
        "subheader": "",
        "bodytext": [
          {
            "_type": "block",
            "_key": "k0",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k1",
                "marks": [],
                "text": "In free mode a language has content elements of its own, in its own order, translated or not, each with its own uid. Kettenblatt's German home page opens with a seasonal note that doesn't exist in English:"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k2",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k3",
                "marks": [
                  "code"
                ],
                "text": "GET https://kettenblatt.example/de/_api/headless_pages/3000"
              }
            ]
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      },
      {
        "uid": 2077,
        "CType": "text",
        "header": "The language switch",
        "header_layout": 0,
        "header_position": "",
        "header_link": null,
        "subheader": "",
        "bodytext": [
          {
            "_type": "block",
            "_key": "k0",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k1",
                "marks": [],
                "text": "Menu titles and URLs follow the page translations in every mode. The language links of this site point to actual translations only; where a page has none, the link leads to the home page of that language and says so."
              }
            ]
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ],
    "specimen": [
      {
        "uid": 2078,
        "CType": "header",
        "header": "Kettenblatt in English",
        "header_layout": 0,
        "header_position": "",
        "header_link": {
          "href": "https://typo3.example/kettenblatt/",
          "target": null,
          "title": null
        },
        "subheader": "",
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      },
      {
        "uid": 2079,
        "CType": "header",
        "header": "Kettenblatt in German",
        "header_layout": 0,
        "header_position": "",
        "header_link": {
          "href": "https://typo3.example/kettenblatt/de/",
          "target": null,
          "title": null
        },
        "subheader": "",
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ]
  }
}