PHPackages                             crealoz/hyva-translations - 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. crealoz/hyva-translations

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

crealoz/hyva-translations
=========================

Extends the JS translation pipeline for Hyva themes: collects translations from .js and .phtml files and exposes a ready-to-use JS dictionary for the $t function

1.1.2(2mo ago)8466↓100%1MITJavaScriptPHP ^8.1CI passing

Since Sep 22Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/crealoz/hyva-translations)[ Packagist](https://packagist.org/packages/crealoz/hyva-translations)[ GitHub Sponsors](https://github.com/sponsors/crealoz)[ RSS](/packages/crealoz-hyva-translations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/f2bd2d11113b6a7387a18f2bc4440bed7e035c730c18a4ce23f51ab6c73421c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637265616c6f7a2f687976612d7472616e736c6174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crealoz/hyva-translations)[![Packagist](https://camo.githubusercontent.com/fa6e1bab5baad6a6b2aec1ff2016500212c18b700f940cb11ce569f3a3e524f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f637265616c6f7a2f687976612d7472616e736c6174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crealoz/hyva-translations/stats)[![Packagist](https://camo.githubusercontent.com/4c56ae78a18762b3c09b4916bf9a5d59eadf50e18a5683dc7116976da397434d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f637265616c6f7a2f687976612d7472616e736c6174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crealoz/hyva-translations/stats)

hyva-translations
=================

[](#hyva-translations)

Description
-----------

[](#description)

`HyvaTranslations` is a Magento 2 module that extends the JS translation pipeline for Hyvä themes: collects translations from `.js` and `.phtml`, merges CSV translation files, and exposes a ready-to-use JS dictionary for the `$t` function on the frontend (compatible with Alpine/Hyvä).

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

[](#installation)

1. Add the dependency via Composer:

    ```
    composer require crealoz/hyva-translations
    ```
2. Enable the module:

    ```
    bin/magento module:enable Crealoz_HyvaTranslations
    bin/magento setup:upgrade
    ```

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

[](#configuration)

No additional configuration is required. The module uses Magento and Hyvä’s default directories.

Usage
-----

[](#usage)

Translations are automatically collected and exposed in `i18n/js-translation.json`. To use the `$t` function in your components:

```
$t('Your text to translate');
```

Or in an Alpine template:

```

```

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

[](#contributing)

1. Fork the repository.
2. Create a feature branch: `git checkout -b feature/my-feature`.
3. Submit a pull request.

License
-------

[](#license)

MIT

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance86

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Total

5

Last Release

67d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d5db3c2a5ae9acfa36990c4502617825b7abe75f00c49a8e21562aa3537b919?d=identicon)[ChristopheCrealoz](/maintainers/ChristopheCrealoz)

---

Top Contributors

[![ChristopheFerreboeuf](https://avatars.githubusercontent.com/u/10241898?v=4)](https://github.com/ChristopheFerreboeuf "ChristopheFerreboeuf (14 commits)")

---

Tags

hyva-modulemagento2

### Embed Badge

![Health badge](/badges/crealoz-hyva-translations/health.svg)

```
[![Health](https://phpackages.com/badges/crealoz-hyva-translations/health.svg)](https://phpackages.com/packages/crealoz-hyva-translations)
```

###  Alternatives

[jms/translation-bundle

Puts the Symfony Translation Component on steroids

42510.8M63](/packages/jms-translation-bundle)[lunetics/locale-bundle

A Bundle for switching Languages

1861.1M8](/packages/lunetics-locale-bundle)[skillshare/formatphp

Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

8029.6k](/packages/skillshare-formatphp)

PHPackages © 2026

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