PHPackages                             mecodeninja/module-dynamic-translation - 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. mecodeninja/module-dynamic-translation

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

mecodeninja/module-dynamic-translation
======================================

N/A

1.0.0(3y ago)101[1 PRs](https://github.com/willwright/Mecodeninja_DynamicTranslation/pulls)MITPHP

Since Nov 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/willwright/Mecodeninja_DynamicTranslation)[ Packagist](https://packagist.org/packages/mecodeninja/module-dynamic-translation)[ RSS](/packages/mecodeninja-module-dynamic-translation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Mecodeninja\_DynamicTranslation
===============================

[](#mecodeninja_dynamictranslation)

Magento 2 module that allows a developer to flag rows in translation dictionaries to be added regardless of whether a instance of the string is matched or not.

Install
-------

[](#install)

`composer require mecodeninja/module-dynamic-translation`

Usage
-----

[](#usage)

Append `,dynamic` to any translation which should be added to the dictionary (`js-translation.json`).

### Example

[](#example)

`en_US.csv`

```
"value1","translated value1",dynamic
"value2","translated value2",dynamic
"value3","value3",dynamic

```

Results in the following `js-translation.json` response

```
{"value1":"translated value1","value2":"translated value2","value3":"value3"}
```

Scenario
--------

[](#scenario)

This is helpful if a developer has a value which needs to be translated but the value is part of a dynamic output in a knockout template.

`Willwright/Demo/view/frontend/web/template/demo.html`

```

```

`Willwright/Demo/view/frontend/web/js/demo.js`

```
define(['jquery', 'uiComponent', 'ko'], function ($, Component, ko) {
        'use strict';
        return Component.extend({
            initialize: function () {
                this._super();
            },
            getValues: function(){
                return [
                    'value1',
                    'value2',
                    'value3'
                ];
            }
        });
    }
);
```

Normally the above values would **not** be translated. However, with this module and `,dynamic` added to the appropriate rows the values **will** be translated.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

1279d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dd88c7142079520251d3e6909e614554eeeb7fd96c2117b57f714cee6ea284a?d=identicon)[mecodeninja](/maintainers/mecodeninja)

---

Top Contributors

[![guidance-automotan](https://avatars.githubusercontent.com/u/14352596?v=4)](https://github.com/guidance-automotan "guidance-automotan (6 commits)")[![willwright](https://avatars.githubusercontent.com/u/3172818?v=4)](https://github.com/willwright "willwright (1 commits)")

### Embed Badge

![Health badge](/badges/mecodeninja-module-dynamic-translation/health.svg)

```
[![Health](https://phpackages.com/badges/mecodeninja-module-dynamic-translation/health.svg)](https://phpackages.com/packages/mecodeninja-module-dynamic-translation)
```

###  Alternatives

[splendidinternet/mage2-locale-de-de

German (Germany) language

861.0M2](/packages/splendidinternet-mage2-locale-de-de)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[bleez/magento2-pt_br

Magento2 pt\_BR - Traduzido por Agência Bleez

233.6k](/packages/bleez-magento2-pt-br)

PHPackages © 2026

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