PHPackages                             therichcourt/translations-testing-bundle - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. therichcourt/translations-testing-bundle

ActiveLibrary[Testing &amp; Quality](/categories/testing)

therichcourt/translations-testing-bundle
========================================

A simple way to test translations in your Symfony application

2.0.0(2y ago)2124MITPHP

Since Aug 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/TheRichCourt/translations-testing-bundle)[ Packagist](https://packagist.org/packages/therichcourt/translations-testing-bundle)[ RSS](/packages/therichcourt-translations-testing-bundle/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (13)Versions (4)Used By (0)

Translations Testing Bundle
===========================

[](#translations-testing-bundle)

*A simple way to test translations in your Symfony application.*

A Symfony bundle, which provides a page in your application to input translation keys and arguments and instantly see the translation results. Useful for testing / debugging ICU based translations with multiple arguments, without having to change the state of your application for each variant, or hunt down the page which uses the translation.

[![alt text](https://camo.githubusercontent.com/7a467a5d4126ae12c81009c85cf540e7c6155a913b54ba37d959eceab7860181/68747470733a2f2f74686572696368636f7572742e636f6d2f696d616765732f7472616e736c6174696f6e732d74657374696e672d62756e646c652d73637265656e73686f742e706e67 "Screenshot of Translations Testing Bundle")](https://camo.githubusercontent.com/7a467a5d4126ae12c81009c85cf540e7c6155a913b54ba37d959eceab7860181/68747470733a2f2f74686572696368636f7572742e636f6d2f696d616765732f7472616e736c6174696f6e732d74657374696e672d62756e646c652d73637265656e73686f742e706e67)

Installation
------------

[](#installation)

composer require --dev therichcourt/translations-testing-bundle

Configuration
-------------

[](#configuration)

### 1. Register the bundle in `config/bundles.php`

[](#1-register-the-bundle-in-configbundlesphp)

```
TheRichCourt\TranslationsTestingBundle\TranslationsTestingBundle::class => ['dev' => true],
```

### 2. Create a configuration for the bundle in `config/packages/dev/translations_testing.yaml`

[](#2-create-a-configuration-for-the-bundle-in-configpackagesdevtranslations_testingyaml)

```
translations_testing:
    locales:
        - 'en'
        - 'es'
        - 'fr'
        # ...
```

### 3. Set up the routes in `config/routes/dev/routes.yaml`

[](#3-set-up-the-routes-in-configroutesdevroutesyaml)

```
_translations_testing:
    resource: '@TranslationsTestingBundle/Resources/config/routes.yaml'
    # Change the prefix to wherever you'd like the translations testing page to be.
    # Keep in mind any path prefixes you have on your site, for example the page may
    # end up at `/en_GB/tests/translations`
    prefix: /tests/translations
```

That's all the set-up done. You can now go to the page on your site, and start testing translations.

Features
--------

[](#features)

- Translate your keys into all locales
- Test ICU translations, by passing arguments
- Highlights potential issues, e.g. if the translated message matches the key *(which could mean you're missing a translation definiton)*

*N.B. this is **not** an automated testing solution - it just makes it much easier for you to manually test the results of your translations.*

Contributing
------------

[](#contributing)

Any PRs with fixes or improvements gratefully received.

### Setting the project up

[](#setting-the-project-up)

Simply fork, clone and then run:

```
docker build -t translations-testing-bundle .
docker run -it --name translations-testing-bundle --volume .:/usr/src/app translations-testing-bundle

```

Connect to the container, then in there, run:

```
composer install

```

### Testing

[](#testing)

Run `composer test` to run all tests and lints.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~653 days

Total

3

Last Release

776d ago

Major Versions

1.0.1 → 2.0.02024-03-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19869780?v=4)[Rich Court](/maintainers/TheRichCourt)[@TheRichCourt](https://github.com/TheRichCourt)

---

Top Contributors

[![TheRichCourt](https://avatars.githubusercontent.com/u/19869780?v=4)](https://github.com/TheRichCourt "TheRichCourt (10 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/therichcourt-translations-testing-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/therichcourt-translations-testing-bundle/health.svg)](https://phpackages.com/packages/therichcourt-translations-testing-bundle)
```

###  Alternatives

[liip/test-fixtures-bundle

This bundles enables efficient loading of Doctrine fixtures in functional test-cases for Symfony applications

1798.3M42](/packages/liip-test-fixtures-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[zenstruck/mailer-test

Alternative, opinionated helpers for testing emails sent with symfony/mailer.

46671.1k3](/packages/zenstruck-mailer-test)[pierstoval/smoke-testing

Smoke testing automator for Symfony applications

4032.6k](/packages/pierstoval-smoke-testing)[trappar/alice-generator-bundle

Symfony bundle for generating Alice fixtures from Doctrine entities

45169.6k1](/packages/trappar-alice-generator-bundle)

PHPackages © 2026

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