PHPackages                             davidrojo/sf-translations-helper - 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. davidrojo/sf-translations-helper

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

davidrojo/sf-translations-helper
================================

Tranlsations files helper for symfony

1.1.0(9y ago)034MITPHP

Since Oct 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/davidrojo/symfony-translations-helper)[ Packagist](https://packagist.org/packages/davidrojo/sf-translations-helper)[ Docs](https://github.com/davidrojo/symfony-translations-helper)[ RSS](/packages/davidrojo-sf-translations-helper/feed)WikiDiscussions master Synced yesterday

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

symfony-translations-helper
===========================

[](#symfony-translations-helper)

Simple commands to manage translations in Symfony.

This bundle allows you to write missing translations from a yml file to another requesting the missing translations and storing them in the output file.

For each non found translation it will request the translation showing the field id and the original text to translate, making it very easy to update your translation files when you have added fields to them

\*\* It currently only suports yml translations files

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
- [Example](#example)
- [Contributions](#contributions)
- [Donations](#donations)

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

[](#installation)

Just require the bundle with composer:

`composer.phar require davidrojo/sf-translations-helper`

And then add it to app/AppKernel.php:

```
public function registerBundles()
    {
        $bundles = [
            ...
            new DavidRojo\SfTranslationHelper\SfTranslationsBundle(),
            ...
        ]
    }
}
```

Usage
-----

[](#usage)

Execute the command

```
php bin/console translations:helper [from_language] [to_language] [BundleName|File] [allowEmpty]

```

Arguments:

```
from              Origin language file (example: en)
to                Destination language file (example: fr)
file              Bundle name or the full path from current folder to the input file
addEmpty          Optional (true/false), Add empty values to the destination
                  file if no translation is added (default: false)

```

Options:

```
--no-backup       If not present a .backup file will be generated if output file exists

```

Example
-------

[](#example)

```
$ php bin/console translations:helper en fr AppBundle

Destination file already exists. Override? (y/n): y
Counting missing translations...3 missing, 0 empty

Field id: delete
Original: Eliminar
Please enter the translation: Effacer

Field id: courses.create
Original: Crear curso
Please enter the translation: Créer un cours

Field id: total
Original: Total
Please enter the translation: Total
Saving file.
File saved at /AppBundle//Resources/translations/messages.fr.yml

```

Contributions
-------------

[](#contributions)

Just open an issue or send a pull request and if it fits it will be integrated.

Donations
---------

[](#donations)

If you liked this bundle and saved you a little of time, you can:

- [buy me a coffe](https://www.paypal.me/DavidRojoGonzalez/2)
- [buy me a dinner](https://www.paypal.me/DavidRojoGonzalez/10)
- [buy me a good dinner](https://www.paypal.me/DavidRojoGonzalez/30)
- [buy me a phpstorm license](https://www.paypal.me/DavidRojoGonzalez/89)
- [pay my rent](https://www.paypal.me/DavidRojoGonzalez/650)
- [buy me a car](https://www.paypal.me/DavidRojoGonzalez/12000)
- [buy me a super car](https://www.paypal.me/DavidRojoGonzalez/150000)

;)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~32 days

Total

2

Last Release

3506d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1050749?v=4)[David Rojo](/maintainers/davidrojo)[@davidrojo](https://github.com/davidrojo)

---

Top Contributors

[![davidrojo](https://avatars.githubusercontent.com/u/1050749?v=4)](https://github.com/davidrojo "davidrojo (7 commits)")

---

Tags

symfonytranslations

### Embed Badge

![Health badge](/badges/davidrojo-sf-translations-helper/health.svg)

```
[![Health](https://phpackages.com/badges/davidrojo-sf-translations-helper/health.svg)](https://phpackages.com/packages/davidrojo-sf-translations-helper)
```

PHPackages © 2026

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