PHPackages                             k1sul1/polylang-get-all-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. k1sul1/polylang-get-all-translations

ActiveWordpress-plugin[Localization &amp; i18n](/categories/localization)

k1sul1/polylang-get-all-translations
====================================

New function to Polylang that prints all translations as key-value pairs.

0.1.4(8y ago)371GPL-2.0PHPPHP ^5.4 || ^7.0

Since Dec 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/k1sul1/polylang-get-all-translations)[ Packagist](https://packagist.org/packages/k1sul1/polylang-get-all-translations)[ RSS](/packages/k1sul1-polylang-get-all-translations/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)DependenciesVersions (6)Used By (0)

Polylang - Get all translations
===============================

[](#polylang---get-all-translations)

Get all translations for the current language as a single key-value object. Calls are cached for performance. You can use the object in `wp_localize_script()` to print all string translations to the client as a JavaScript object.

`pl_get_all_translations()` gives you a cached array of keypairs.

There's a few filters that you can use to configure the plugin.

Requirements
------------

[](#requirements)

- Polylang
- PHP 5.4+

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

[](#installation)

Install the plugin via [Composer](https://getcomposer.org/)

```
composer require k1sul1/polylang-get-all-translations

```

Activate the plugin

```
wp plugin activate polylang-get-all-translations

```

Usage
-----

[](#usage)

```
wp_enqueue_script('theme-js', get_stylesheet_directory_uri() . '/dist/js/bundle.js', false, $version, true);
wp_localize_script('theme-js', 'pll', pl_get_all_translations());
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3228d ago

PHP version history (2 changes)0.1PHP ^5.5 || ^7.0

0.1.1PHP ^5.4 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/63e7de2cb756a5f7b6ebeca45a2ac7ff1ca000ee67f3966955a79ee870cab6bf?d=identicon)[k1sul1](/maintainers/k1sul1)

---

Top Contributors

[![k1sul1](https://avatars.githubusercontent.com/u/2719615?v=4)](https://github.com/k1sul1 "k1sul1 (9 commits)")

### Embed Badge

![Health badge](/badges/k1sul1-polylang-get-all-translations/health.svg)

```
[![Health](https://phpackages.com/badges/k1sul1-polylang-get-all-translations/health.svg)](https://phpackages.com/packages/k1sul1-polylang-get-all-translations)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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