PHPackages                             hyva-themes/magento2-i18n-csv-diff - 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. hyva-themes/magento2-i18n-csv-diff

ActiveMagento2-module[Localization &amp; i18n](/categories/localization)

hyva-themes/magento2-i18n-csv-diff
==================================

Magento command to display all translations that are present in the first CSV file but not in the second.

1.0.2(2y ago)131.7k↓50%3[2 issues](https://github.com/hyva-themes/magento2-i18n-csv-diff/issues)BSD-3-ClausePHPPHP &gt;=7.4.0

Since Apr 1Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/hyva-themes/magento2-i18n-csv-diff)[ Packagist](https://packagist.org/packages/hyva-themes/magento2-i18n-csv-diff)[ RSS](/packages/hyva-themes-magento2-i18n-csv-diff/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Hyvä Themes - Magento translation CSV comparison command
========================================================

[](#hyvä-themes---magento-translation-csv-comparison-command)

[![Hyvä Themes](https://camo.githubusercontent.com/9eead112d327c1ea1f3b2568bb1853ca73a2faccf5ae9dd595f70003e359245c/68747470733a2f2f6769746c61622e687976612e696f2f75706c6f6164732f2d2f73797374656d2f67726f75702f6176617461722f3631372f687976612d6c6f676f2d3336302e706e673f77696474683d313630)](https://hyva.io/)

hyva-themes/magento2-i18n-csv-diff
----------------------------------

[](#hyva-themesmagento2-i18n-csv-diff)

[![Supported Magento Versions](https://camo.githubusercontent.com/0b6d28a963c77797b2df0442dbf1b6340361b3125bd3ce1dc10ce7a7d1a1fdcf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0b6d28a963c77797b2df0442dbf1b6340361b3125bd3ce1dc10ce7a7d1a1fdcf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)

This module adds the `bin/magento i18n:diff-csv` and `i18n:translate-csv` commands.

### i18n:diff-csv

[](#i18ndiff-csv)

The command takes two CSV files as arguments.
It displays all translations that are present in the first CSV file but not in the second, based on the first colum in the files.

### i18n:translate

[](#i18ntranslate)

The command takes a target language 2-letter ISO code as the argument.
It reads a Magento localization CSV dictionary from stdin, translates it using the DeepL API, and writes it to stdout.
Be sure to check the automatic translations afterwards!

Usage Examples:
---------------

[](#usage-examples)

- Collect all Magento and Hyvä strings:

    ```
    bin/magento i18n:collect-phrases vendor/magento/ > magento-strings.csv
    bin/magento i18n:collect-phrases vendor/hyva-themes/magento2-default-theme/ > hyva-strings.csv
    bin/magento i18n:collect-phrases vendor/hyva-themes/magento2-theme-module/ >> hyva-strings.csv
    ```
- Find all Hyvä specific translations that are not part of native Magento:

    ```
    bin/magento i18n:diff-csv hyva-strings.csv magento-strings.csv
    ```
- Find all translations that are missing in a Hyvä translation file:

    ```
    bin/magento i18n:diff-csv hyva-strings.csv i18n/de_DE.csv
    ```
- Find all translations that are in a translation file but are not used in Hyvä:

    ```
    bin/magento i18n:diff-csv i18n/de_DE.csv hyva-strings.csv
    ```
- Add new translations to an existing dictionary file.

    ```
    bin/magento i18n:diff-csv hyva-strings.csv i18n/de_DE.csv | bin/magento i18n:translate-csv DE >> i18n/de_DE.csv
    ```

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

[](#installation)

1. Install via composer ```
    composer require hyva-themes/magento2-i18n-csv-diff

    ```
2. Enable module ```
    bin/magento setup:upgrade

    ```

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

[](#configuration)

To use the Deep`i18n:translate-csv` command, configure your [API key](https://www.deepl.com/pro-api?cta=header-pro-api/) in the system configuration at *Hyva Themes &gt; Localization CLI &gt; Translation &gt; DeepL API Key*.

### License

[](#license)

This package is licensed under the **Open Software License (OSL 3.0)**.

- **Copyright:** Copyright © 2020-present Hyvä Themes. All rights reserved.
- **License Text (OSL 3.0):** The full text of the OSL 3.0 license can be found in the `LICENSE.txt` file within this package, and is also available online at .

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance55

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~248 days

Total

3

Last Release

1011d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1905417db5fbd31a61553b29bd441fdc66945da7cfb14f1b20a72275c68184e8?d=identicon)[vinai](/maintainers/vinai)

![](https://www.gravatar.com/avatar/7cd0062c670f61aa554c5d30193848ac11031b6cdb8f8616249b95a235eb475d?d=identicon)[wigman](/maintainers/wigman)

---

Top Contributors

[![Vinai](https://avatars.githubusercontent.com/u/72463?v=4)](https://github.com/Vinai "Vinai (9 commits)")[![dermatz](https://avatars.githubusercontent.com/u/6103201?v=4)](https://github.com/dermatz "dermatz (1 commits)")[![JeroenBoersma](https://avatars.githubusercontent.com/u/1163348?v=4)](https://github.com/JeroenBoersma "JeroenBoersma (1 commits)")

### Embed Badge

![Health badge](/badges/hyva-themes-magento2-i18n-csv-diff/health.svg)

```
[![Health](https://phpackages.com/badges/hyva-themes-magento2-i18n-csv-diff/health.svg)](https://phpackages.com/packages/hyva-themes-magento2-i18n-csv-diff)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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