sitegeist/csv-labels

Use CSV files to provide translation labels to TYPO3

Maintainers

👁 s2b

Package info

github.com/sitegeist/csv-labels

Type:typo3-cms-extension

pkg:composer/sitegeist/csv-labels

Statistics

Installs: 86 170

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 1

1.1.1 2026-05-28 08:10 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later 5d21a239baa517206861bec3bd8e5dcd480073f4

  • Ulrich Mathes <mathes.woop@sitegeist.de>
  • Simon Praetorius <moin.woop@praetorius.me>

README

This utility extension extends the language handling of TYPO3 to be able to use a simple CSV file format to specify language labels. While the XLIFF file format is a widely used standard and is more powerful, CSV files can be a pragmatic approach for language files that only contain a handful of entries.

This extension does not remove or disable XLIFF files, it merely provides another file format to choose from. We at sitegeist use the CSV file format to define language labels for Fluid Components.

Getting started

Install the extension either from TER or via composer:

composer require sitegeist/csv-labels

File format

locallang.csv:

"id","description","default","de"
"Actions","","Actions","Aktionen"
"ConfirmDelete","Message in the delete user dialog","Should the following user be deleted?","Soll der folgende Nutzer gelöscht werden?"

Rules:

  • The column id represents the label identifier
  • The column description represents the label description (for documentation purposes)
  • All other columns are treated as a translation for the locale from the header line
  • The csv files use , as delimiter and " as text delimiters (default configuration of fgetcsv)

Usage

<!-- either explicitly -->
<f:translate key="EXT:my_extension/Resources/Private/Language/locallang.csv:Actions" />
<!-- or as a fallback, in case the xlf file doesn't exist -->
<f:translate key="EXT:my_extension/Resources/Private/Language/locallang.xlf:Actions" />
<!-- this means that it can also be used in extbase context without the full path -->
<f:translate key="Actions" />

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by my employer https://sitegeist.de.