PHPackages                             silverstripe/tx-translator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. silverstripe/tx-translator

ActiveLibrary[Localization &amp; i18n](/categories/localization)

silverstripe/tx-translator
==========================

Silverstripe TX Translator

1.3.0(1y ago)01012[1 issues](https://github.com/silverstripe/silverstripe-tx-translator/issues)PHPPHP ^8.1CI passing

Since Mar 1Pushed 1y ago4 watchersCompare

[ Source](https://github.com/silverstripe/silverstripe-tx-translator)[ Packagist](https://packagist.org/packages/silverstripe/tx-translator)[ RSS](/packages/silverstripe-tx-translator/feed)WikiDiscussions 1 Synced yesterday

READMEChangelog (10)Dependencies (9)Versions (23)Used By (0)

silverstripe tx translator
==========================

[](#silverstripe-tx-translator)

Module to assist with transifex integration. Works with Silverstripe 4.12+ and 5.0+.

Operations
----------

[](#operations)

- Pull latest translations from transifex and merge them into yml/json/js translation files
- Run i18nTextCollectorTask on a local website (optional)
- Push updated source strings to transifex (optional)
- Create github pull-requests with file changes

Requirements
------------

[](#requirements)

Transifex cli client (tx) -  configured API key from transifex.

You must use the go version at least version 1.6+ and not the old python version.

Create a new classic github api token in [github token settings](https://github.com/settings/tokens) with all checkboxes unticked except for `public_repo`. This is required to create pull-requests.

Delete this token from github once you have completed updating translations.

Usage
-----

[](#usage)

```
cd /path/to/my-local-site
composer require silverstripe/tx-translator

```

To pull latest translations from transifex, typically this will be done on the lowest supported branch:

```
TX_GITHUB_API_TOKEN=mytoken php vendor/silverstripe/tx-translator/scripts/translate.php

```

To run text collector and update transifex with the latest source strings, typically this will be done on the latest next-minor branch:

```
TX_GITHUB_API_TOKEN=mytoken TX_SITE=my-local-site.test TX_COLLECT=1 TX_PULL=0 TX_PUSH=1 php vendor/silverstripe/tx-translator/scripts/translate.php

```

Environment variables
---------------------

[](#environment-variables)

Environment variables can either be set via the command line, like in the examples above, or in an .env in the root folder of the site, or using any other methods to set environment variables.

Note that the valid values for the boolean variables are 1, true, on, 0, false and off.

- `TX_GITHUB_API_TOKEN` (required) - the github token with write access to create pull-requests
- `TX_PULL` (default `1`) - pull latest translations from transifex, run i18nTextCollectorTask and update translation files
- `TX_PUSH` (default `0`) - push new source strings to transifex
- `TX_COLLECT` (default `0`) - run i18nTextCollectorTask on local site
- `TX_SITE` (required if `TX_COLLECT` is `1`) - the url of a local silverstripe site to run i18nTextCollectorTask against. `http://` will be automatically added if protocol is omitted
- `TX_DEV_MODE` (default `0`) - do not push to transifex or create github pull-requests. Useful for local development and for doing dry-runs
- `TX_VERBOSE_LOGGING` (default `0`) - show verbose logging

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance47

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 54.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~56 days

Total

23

Last Release

378d ago

PHP version history (2 changes)1.0.0PHP ^7.4 || ^8.1

1.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0cba8b534e20e6ab4fff555a97b237a18436ebca1446fc0b29c8a8b504038b9?d=identicon)[GuySartorelli](/maintainers/GuySartorelli)

![](https://www.gravatar.com/avatar/a25bc04c5720a36869d5a39c6449dde7eb43e19b7c8e666d5f632d6a9ab440b1?d=identicon)[emteknetnz](/maintainers/emteknetnz)

![](https://www.gravatar.com/avatar/afbb3dcc9ef29c1a6eedd6addcae5fce9ab1271915a85a4c349301b71237368d?d=identicon)[silverstripe-machine01](/maintainers/silverstripe-machine01)

---

Top Contributors

[![GuySartorelli](https://avatars.githubusercontent.com/u/36352093?v=4)](https://github.com/GuySartorelli "GuySartorelli (31 commits)")[![emteknetnz](https://avatars.githubusercontent.com/u/4809037?v=4)](https://github.com/emteknetnz "emteknetnz (24 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/silverstripe-tx-translator/health.svg)

```
[![Health](https://phpackages.com/badges/silverstripe-tx-translator/health.svg)](https://phpackages.com/packages/silverstripe-tx-translator)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M419](/packages/drupal-core-recommended)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M734](/packages/sylius-sylius)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
