---
title: "site-language data processor"
manual: "TypoScript Explained"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3tsref:sitelanguageprocessor@13.4"
source: "DataProcessing/SiteLanguageProcessor.rst"
rendered: "2026-09-19T07:15:48+00:00"
---

# `site-language` data processor {#sitelanguageprocessor}

The `\TYPO3\CMS\Frontend\DataProcessing\SiteLanguageProcessor`,
alias `site-language`, fetches language-related data from the
[site configuration](https://docs.typo3.org/m/typo3/reference-coreapi/13.4/en-us/ApiOverview/SiteHandling/Index.html#sitehandling).

**Table of contents**

-   [Options](https://docs.typo3.org/permalink/t3tsref:options@13.4)
-   [Example: Output some data from the site language configuration](https://docs.typo3.org/permalink/t3tsref:example-output-some-data-from-the-site-language-configuration@13.4)

## Options {#sitelanguageprocessor-options}

-   **as**

    -   *Type:* [string](https://docs.typo3.org/permalink/t3tsref:data-type-string@13.4)
    -   *Required:* false
    -   *Default:* "site"

    The variable name to be used in the Fluid template.

## Example: Output some data from the site language configuration {#sitelanguageprocessor-example}

Please see also [About the examples](https://docs.typo3.org/permalink/t3tsref:dataprocessing-about-examples@13.4).

**TypoScript**

Using the `SiteLanguageProcessor`
the following scenario is possible:

**EXT:examples/Configuration/TypoScript/DataProcessors/Processors/SiteLanguageProcessor.typoscript**

```typoscript
tt_content {
  examples_dataprocsitelanguage =< lib.contentElement
  examples_dataprocsitelanguage {
    templateName = DataProcSiteLanguage
    dataProcessing.10 = site-language
    dataProcessing.10 {
      as = language
    }
  }
}

```

**The Fluid template**

In the Fluid template the properties of the site language configuration can
be accessed:

**EXT:examples/Resources/Private/Templates/ContentElements/DataProcSiteLanguage.html**

```html
<html data-namespace-typo3-fluid="true" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers">
<h2>Data in variable site</h2>
<f:debug inline="true">{language}</f:debug>

<h2>Output</h2>

<p>language id: {language.languageId}</p>

</html>

```

**Output**

The array now contains the information from the site language configuration:

![](../Images/ManualScreenshots/SiteLanguageProcessor.png)
