PHPackages                             hoy/polylang - 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. hoy/polylang

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

hoy/polylang
============

A Polylang helper for WordPlate

4.0.0(8y ago)48.0k2MITPHPPHP ^7.1.3

Since May 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hoymultimedia/polylang)[ Packagist](https://packagist.org/packages/hoy/polylang)[ RSS](/packages/hoy-polylang/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (1)Versions (10)Used By (0)

Polylang
========

[](#polylang)

A [Polylang](https://wordpress.org/plugins/polylang) helper for [WordPlate](https://wordplate.github.io).

[![Build Status](https://camo.githubusercontent.com/7dc4fb1dd7ac79ddf1295bcf2f2d8e8bb943c5e1ce5ab29e99a8cfe88dc10192/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f686f792f706f6c796c616e672f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/hoy/polylang)[![StyleCI](https://camo.githubusercontent.com/3ce499d7b197ae900c8492556723ae12f0fb5de9d11834cd81b145d7905f13f4/68747470733a2f2f7374796c6563692e696f2f7265706f732f35383534373538362f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/58547586)[![Coverage Status](https://camo.githubusercontent.com/7192d300c0b7089ba67c2793acf5a534e048e73d9b2482f29bc2a364088dc42f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f686f792f706f6c796c616e672e7376673f7374796c653d666c6174)](https://codecov.io/github/hoy/polylang)[![Latest Version](https://camo.githubusercontent.com/b7ea884fb41d018a6cec79ac85394fa3104230bb449d927c0be8b621ec5b08c0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f686f792f706f6c796c616e672e7376673f7374796c653d666c6174)](https://github.com/hoy/polylang/releases)[![License](https://camo.githubusercontent.com/aa491f6345fd9e7ee8a4c701eb536a4a399a428ea716328f984ea34743bf4199/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f686f792f706f6c796c616e672e7376673f7374796c653d666c6174)](https://packagist.org/packages/hoy/polylang)

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

[](#installation)

Require this package, with [Composer](https://getcomposer.org), in the root directory of your project.

```
$ composer require hoy/polylang
```

Login to the WordPress administrator dashboard and activate the [Polylang](https://wordpress.org/plugins/polylang) plugin. Go to the Polylang settings page and add at least one language.

Usage
-----

[](#usage)

Register the translations with the `pll_translations` function. They will now be available for translation on the 'Strings translations' page in the WordPress administrator dashboard.

```
pll_translations([
    'group' => [
        'String that should be translatable by Polylang' => 'Explanation of how the string is used',
    ],
    'general' => [
        'English' => 'The english language',
        'Swedish' => 'The swedish language',
    ],
    'cookie-bar' => [
        'This website uses cookies to ensure you get the best experience on our website.' => 'Cookie bar message',
        'I understand' => 'Cookie bar button text'
    ],
]);
```

Then to fetch and print a translation you can use the `trans` function like you would use regular [\_\_()](https://developer.wordpress.org/reference/functions/__) function.

```
echo trans('I understand');
```

Documentation
-------------

[](#documentation)

Please visit [Polylang's documentation](https://wordpress.org/plugins/polylang) to find out more about translating your post types.

License
-------

[](#license)

[MIT](LICENSE) © [Hoy Multimedia AB](http://hoy.se)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 86.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

Every ~95 days

Recently: every ~152 days

Total

8

Last Release

2986d ago

Major Versions

1.2.0 → 2.0.02017-05-14

2.0.0 → 3.0.02017-09-19

3.0.0 → 4.0.02018-03-12

PHP version history (4 changes)1.0.0PHP ^5.5.9 || ^7.0

1.1.0PHP ^5.6.4 || ^7.0

1.2.0PHP ^7.0

4.0.0PHP ^7.1.3

### Community

Maintainers

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

---

Top Contributors

[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (52 commits)")[![tditlu](https://avatars.githubusercontent.com/u/1586901?v=4)](https://github.com/tditlu "tditlu (6 commits)")[![fiskhandlarn](https://avatars.githubusercontent.com/u/680264?v=4)](https://github.com/fiskhandlarn "fiskhandlarn (2 commits)")

---

Tags

polylangtranslationwordplatewordpresswordpresspolylangwordplate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hoy-polylang/health.svg)

```
[![Health](https://phpackages.com/badges/hoy-polylang/health.svg)](https://phpackages.com/packages/hoy-polylang)
```

###  Alternatives

[grappler/polylang-slug

Allows same slug for multiple languages in Polylang

29511.8k](/packages/grappler-polylang-slug)[wearerequired/traduttore-registry

Allows loading translation files from a custom GlotPress site running Traduttore

1566.7k6](/packages/wearerequired-traduttore-registry)[wcm/wcm-lang-switch

Adds a button to the admin toolbar. This buttons allows users to seamlessly switch between available languages..

212.0k](/packages/wcm-wcm-lang-switch)

PHPackages © 2026

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