---
title: "Feature: #57632 - Include inline language label files with TypoScript"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-57632"
source: "Changelog/7.5/Feature-57632-AddInlineLanguageLabelFilesWithTypoScript.rst"
typo3-version: "7.5"
typo3-major: 7
type: "feature"
issue: 57632
forge: "https://forge.typo3.org/issues/57632"
tags: ["TypoScript", "JavaScript", "Frontend"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Feature: #57632 - Include inline language label files with TypoScript {#feature-57632}

See [forge#57632](https://forge.typo3.org/issues/57632)

## Description {#description}

It is now possible to add inline language label files with TypoScript.

### Usage {#usage}

If you want to include inline labels from a XLF file, you have to specify that
file in your TypoScript with a custom key in the new `inlineLanguageLabelFiles`
section. In addition to the file you can configure three optional parameters:

-   `selectionPrefix`: Only label keys that start with this prefix will be included (default: '')
-   `stripFromSelectionName`: A string that will be removed from any included label key (default: '')
-   `errorMode`: Error mode if the file could not be found: 0 - syslog entry, 1 - do nothing, 2 - throw an exception (default: 0)

### Example {#example}

```typoscript
page = PAGE
page.inlineLanguageLabelFiles {
	someLabels = EXT:myExt/Resources/Private/Language/locallang.xlf
	someLabels.selectionPrefix = idPrefix
	someLabels.stripFromSelectionName = strip_me
	someLabels.errorMode = 2
}
```

Output in the HTML head:

```javascript
var TYPO3 = TYPO3 || {};
TYPO3.lang = {"firstLabel":[{"source":"first Label","target":"erstes Label"}],"secondLabel":[{"source":"second Label","target":"zweites Label"}]};
```
