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 2mo ago

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 37% 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

3179d 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

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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