PHPackages                             pfcode/symfony-i18n-comparator - 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. pfcode/symfony-i18n-comparator

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

pfcode/symfony-i18n-comparator
==============================

Utility for comparison of duplicated translation files in Symfony projects.

1.0.10(4y ago)05MITPHPPHP ^7.1 || ^8.0

Since May 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pfcode/symfony-i18n-comparator)[ Packagist](https://packagist.org/packages/pfcode/symfony-i18n-comparator)[ RSS](/packages/pfcode-symfony-i18n-comparator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

I18nComparatorBundle
====================

[](#i18ncomparatorbundle)

Utility for making a comparison of duplicated translation files in Symfony projects.

### Use case

[](#use-case)

The case this util resolves is very specific - it's intended to help find differences between translation files belonging to the same domain and language, but saved in different formats (messages.en.xlf and messages.en.yml, for example).

Note: Such differences should not occur under usual circumstances when using symfony/translation component. Please see the *Example* section below and check if this bundle actually solves your problem.

### Installation

[](#installation)

You can add this bundle into your Symfony project using Composer:

```
composer require pfcode/symfony-i18n-comparator
```

This bundle requires at least Symfony 4.4 or 5.0 and PHP 7.1 or later and it's not intended to be used on production environments.

### Example

[](#example)

Let's say you have two translation files in your project, that belong to the same domain and are in the same language:

*translations/messages.en.xlf*:

```

                nav.home
                Dashboard

                nav.login
                Sign In

                nav.logout
                Logout

```

*translations/messages.en.yml*:

```
nav:
  home: 'Home'
  login: 'Sign In'
  logout: 'Sign Out'
  search: 'Search something...'
```

These translation files obviously have some differences. One of them has nav.search key missing and other messages have different values. Comparing those files in a text editor would be painful.

To compare them at the logical level (translation keys, that is), you can use a command provided by this bundle:

```
bash-4.4# bin/console i18n-comparator:find-conflicts --translations-dir=translations
+---------------------+-- messages.en ------+-----------------+
| Key                 | messages.en.yml     | messages.en.xlf |
+---------------------+---------------------+-----------------+
| messages.nav.home   | Home                | Dashboard       |
| messages.nav.logout | Sign Out            | Logout          |
| messages.nav.search | Search something... |                 |
+---------------------+---------------------+-----------------+

```

With this command, searching for differences across various translation formats should be a lot easier.

### Supported translation formats

[](#supported-translation-formats)

This bundle registers a ComparatorFactory service and passes references to all known translation loaders (all services tagged by `translation.loader`) to it. So it supports all formats that your Symfony installation already does.

### License

[](#license)

This project is distributed under the MIT license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

Unknown

Total

1

Last Release

1806d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1820140?v=4)[Paweł Firlej](/maintainers/pfcode)[@pfcode](https://github.com/pfcode)

---

Top Contributors

[![pfcode](https://avatars.githubusercontent.com/u/1820140?v=4)](https://github.com/pfcode "pfcode (2 commits)")

---

Tags

symfonytranslationSymfony Bundlesymfony command

### Embed Badge

![Health badge](/badges/pfcode-symfony-i18n-comparator/health.svg)

```
[![Health](https://phpackages.com/badges/pfcode-symfony-i18n-comparator/health.svg)](https://phpackages.com/packages/pfcode-symfony-i18n-comparator)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[a2lix/translation-form-bundle

Translate your doctrine objects easily with some helpers

3376.9M38](/packages/a2lix-translation-form-bundle)

PHPackages © 2026

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