{"id":18293172,"url":"https://github.com/getolympus/hermes-translator","last_synced_at":"2026-05-05T21:33:34.420Z","repository":{"id":62510337,"uuid":"237579073","full_name":"GetOlympus/Hermes-Translator","owner":"GetOlympus","description":"Ἑρμῆς — Olympus Hermes Translator is a bundle used to translate all messages from your WordPress website, its plugins and Olympus bundles.","archived":false,"fork":false,"pushed_at":"2020-03-10T07:55:17.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T02:22:01.456Z","etag":null,"topics":["hermes","json","noop","olympus","olympus-bundle","php","translator","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GetOlympus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-01T07:29:45.000Z","updated_at":"2020-03-10T07:55:19.000Z","dependencies_parsed_at":"2022-11-02T13:01:51.237Z","dependency_job_id":null,"html_url":"https://github.com/GetOlympus/Hermes-Translator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetOlympus%2FHermes-Translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetOlympus%2FHermes-Translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetOlympus%2FHermes-Translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetOlympus%2FHermes-Translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GetOlympus","download_url":"https://codeload.github.com/GetOlympus/Hermes-Translator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999864,"owners_count":21031046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hermes","json","noop","olympus","olympus-bundle","php","translator","wordpress"],"created_at":"2024-11-05T14:23:05.388Z","updated_at":"2026-05-05T21:33:34.354Z","avatar_url":"https://github.com/GetOlympus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Olympus Hermes Translator\n\u003e **Olympus Hermes Translator** is a bundle used to translate all messages from your WordPress website, its plugins and Olympus bundles.\n\n```sh\ncomposer require getolympus/olympus-hermes-translator\n```\n\n---\n\n[![Olympus Component][olympus-image]][olympus-url]\n[![CodeFactor Grade][codefactor-image]][codefactor-url]\n[![Packagist Version][packagist-image]][packagist-url]\n[![MIT][license-image]][license-blob]\n\n---\n\n## Features\n\n+ Better and secure folder structure\n+ Dependency management with [**Composer**](https://getcomposer.org)\n\n![With Composer](https://img.shields.io/badge/with-Composer-885630.svg?style=flat-square)\n\n## How to\n\nYou can easily use the `Hermes` translator thanks to its functions:\n```php\n\nnamespace MyCustomPackage;\n\nuse GetOlympus\\Hermes\\Hermes;\n\n/**\n * Load translations.\n *\n * @param  array   $translations\n * @param  string  $locale\n */\nHermes::l([\n    'my-custom-domain' =\u003e '/absolute/path/to/custom/domain/directory/languages',\n    'my-other-domain'  =\u003e '/absolute/path/to/other/domain/directory/languages',\n    'my-latest-domain' =\u003e '/absolute/path/to/latest/domain/directory/languages',\n    // (...)\n], 'en_US');\n\n/**\n * Noop typo from WordPress.\n *\n * @param  string  $single\n * @param  string  $plural\n * @param  integer $number\n * @param  string  $domain\n *\n * @return string\n */\necho Hermes::n('%s message', '%s messages', 3, 'my-custom-domain');\n\n/**\n * Prepare noop typo from WordPress.\n *\n * @param  string  $single\n * @param  string  $plural\n *\n * @return string\n */\necho Hermes::noop('My %s uniq message', 'My %s messages', 'my-custom-domain');\n\n/**\n * Translate typo.\n *\n * @param  string  $message\n * @param  string  $domain\n *\n * @return string\n */\necho Hermes::t('My custom message to translate', 'my-custom-domain');\n```\n\n## Release History\n\nSee [**CHANGELOG.md**][changelog-blob] for all details.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/GetOlympus/Hermes-Translator/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n\n---\n\n**Built with ♥ by [Achraf Chouk](http://github.com/crewstyle \"Achraf Chouk\") ~ (c) since a long time.**\n\n\u003c!-- links \u0026 imgs dfn's --\u003e\n[olympus-image]: https://img.shields.io/badge/for-Olympus-44cc11.svg?style=flat-square\n[olympus-url]: https://github.com/GetOlympus\n[changelog-blob]: https://github.com/GetOlympus/Hermes-Translator/blob/master/CHANGELOG.md\n[codefactor-image]: https://www.codefactor.io/repository/github/GetOlympus/Hermes-Translator/badge?style=flat-square\n[codefactor-url]: https://www.codefactor.io/repository/github/getolympus/Hermes-Translator\n[license-blob]: https://github.com/GetOlympus/Hermes-Translator/blob/master/LICENSE\n[license-image]: https://img.shields.io/badge/license-MIT_License-blue.svg?style=flat-square\n[packagist-image]: https://img.shields.io/packagist/v/getolympus/olympus-Hermes-Translator.svg?style=flat-square\n[packagist-url]: https://packagist.org/packages/getolympus/olympus-Hermes-Translator","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetolympus%2Fhermes-translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetolympus%2Fhermes-translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetolympus%2Fhermes-translator/lists"}