Skip to content

About

TYPO3 extension t3apitranslatr. Get TYPO3 language labels as JSON.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

TYPO3 Extension t3apitranslatr

https://poser.pugx.org/sourcebroker/t3apitranslatr/v/stable https://poser.pugx.org/sourcebroker/t3apitranslatr/license

This extension allows to get language labels from ext:translatr as JSON.

Use composer:

composer require sourcebroker/t3apitranslatr

After installing the labels are accessible by following endpoint: /_api/translations

To narrow the number of labels fetch you can use tags on ext:translator and get only those tags that are needed on page.

/_api/translations?tags[]=general&tags[]=user

The ddev environment installs TYPO3 13 and 14 with the extension, a site with en / pl / de languages and the test labels of .ddev/test-content/test_labels (tags general and user).

ddev start
ddev install-all        # or ddev install-v13 / ddev install-v14
ddev test-api 14        # calls /_api/translations in all languages with and without tags
ddev ci                 # php-cs-fixer, rector, phpstan
ddev fix                # applies the fixes of rector and php-cs-fixer

URLs: https://t3apitranslatr.ddev.site/, https://v13.t3apitranslatr.ddev.site/typo3/, https://v14.t3apitranslatr.ddev.site/typo3/ (admin / Joh316!!)

See https://github.com/sourcebroker/t3apitranslatr/blob/master/CHANGELOG.rst

About

TYPO3 extension t3apitranslatr. Get TYPO3 language labels as JSON.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages