PHPackages                             getolympus/olympus-hermes-translator - 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. getolympus/olympus-hermes-translator

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

getolympus/olympus-hermes-translator
====================================

Olympus Hermes is a bundle used to translate all messages from your WordPress packages and Olympus bundles.

v0.0.2(6y ago)02444MITPHP

Since Feb 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/GetOlympus/Hermes-Translator)[ Packagist](https://packagist.org/packages/getolympus/olympus-hermes-translator)[ Docs](https://github.com/GetOlympus/Hermes-Translator)[ RSS](/packages/getolympus-olympus-hermes-translator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (4)

Olympus Hermes Translator
=========================

[](#olympus-hermes-translator)

> **Olympus Hermes Translator** is a bundle used to translate all messages from your WordPress website, its plugins and Olympus bundles.

```
composer require getolympus/olympus-hermes-translator
```

---

[![Olympus Component](https://camo.githubusercontent.com/f483886a465a9e44005a352c6c1ba6556689a579ecf0d8b984cf60becaaa878c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f722d4f6c796d7075732d3434636331312e7376673f7374796c653d666c61742d737175617265)](https://github.com/GetOlympus)[![CodeFactor Grade](https://camo.githubusercontent.com/277120015d4cb93f66ff448d17506c451e4070733d457a98aee9e7b709920ce6/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f4765744f6c796d7075732f4865726d65732d5472616e736c61746f722f62616467653f7374796c653d666c61742d737175617265)](https://www.codefactor.io/repository/github/getolympus/Hermes-Translator)[![Packagist Version](https://camo.githubusercontent.com/313fb5a80ae0527ea090469acf7324ea4591d8436da55e7c05f166b6afd940d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765746f6c796d7075732f6f6c796d7075732d4865726d65732d5472616e736c61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/getolympus/olympus-Hermes-Translator)[![MIT](https://camo.githubusercontent.com/68035de4b7f69ada20e98e34172f47d361b83a017c8045200fc338660c467897/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49545f4c6963656e73652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/GetOlympus/Hermes-Translator/blob/master/LICENSE)

---

Features
--------

[](#features)

- Better and secure folder structure
- Dependency management with [**Composer**](https://getcomposer.org)

[![With Composer](https://camo.githubusercontent.com/dacce2a4a9e37de39f54cff61ec74d04034a3417389a8c30b0bc01792d7c475a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776974682d436f6d706f7365722d3838353633302e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/dacce2a4a9e37de39f54cff61ec74d04034a3417389a8c30b0bc01792d7c475a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776974682d436f6d706f7365722d3838353633302e7376673f7374796c653d666c61742d737175617265)

How to
------

[](#how-to)

You can easily use the `Hermes` translator thanks to its functions:

```
namespace MyCustomPackage;

use GetOlympus\Hermes\Hermes;

/**
 * Load translations.
 *
 * @param  array   $translations
 * @param  string  $locale
 */
Hermes::l([
    'my-custom-domain' => '/absolute/path/to/custom/domain/directory/languages',
    'my-other-domain'  => '/absolute/path/to/other/domain/directory/languages',
    'my-latest-domain' => '/absolute/path/to/latest/domain/directory/languages',
    // (...)
], 'en_US');

/**
 * Noop typo from WordPress.
 *
 * @param  string  $single
 * @param  string  $plural
 * @param  integer $number
 * @param  string  $domain
 *
 * @return string
 */
echo Hermes::n('%s message', '%s messages', 3, 'my-custom-domain');

/**
 * Prepare noop typo from WordPress.
 *
 * @param  string  $single
 * @param  string  $plural
 *
 * @return string
 */
echo Hermes::noop('My %s uniq message', 'My %s messages', 'my-custom-domain');

/**
 * Translate typo.
 *
 * @param  string  $message
 * @param  string  $domain
 *
 * @return string
 */
echo Hermes::t('My custom message to translate', 'my-custom-domain');
```

Release History
---------------

[](#release-history)

See [**CHANGELOG.md**](https://github.com/GetOlympus/Hermes-Translator/blob/master/CHANGELOG.md) for all details.

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

[](#contributing)

1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

---

**Built with ♥ by [Achraf Chouk](http://github.com/crewstyle "Achraf Chouk") ~ (c) since a long time.**

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

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

2268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c255b14ebf8b792ba8b0c9940bd13e899281fc1431f1088af9074acdaa191cef?d=identicon)[crewstyle](/maintainers/crewstyle)

---

Top Contributors

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

---

Tags

hermesjsonnoopolympusolympus-bundlephptranslatorwordpressphpwordpresstranslatelibrarytranslatorhermesolympusolympus-hermes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/getolympus-olympus-hermes-translator/health.svg)

```
[![Health](https://phpackages.com/badges/getolympus-olympus-hermes-translator/health.svg)](https://phpackages.com/packages/getolympus-olympus-hermes-translator)
```

###  Alternatives

[stichoza/google-translate-php

Free Google Translate API PHP Package

2.0k7.6M124](/packages/stichoza-google-translate-php)[punic/punic

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)

PHPackages © 2026

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