PHPackages                             ride/web-i18n-expose - 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. ride/web-i18n-expose

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

ride/web-i18n-expose
====================

Ride module to expose the i18n translator to javascript

1.1.1(8y ago)04.2k4MITPHP

Since Apr 21Pushed 8y ago11 watchersCompare

[ Source](https://github.com/all-ride/ride-web-i18n-expose)[ Packagist](https://packagist.org/packages/ride/web-i18n-expose)[ RSS](/packages/ride-web-i18n-expose/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (8)Versions (8)Used By (4)

Ride: Web Expose I18n
=====================

[](#ride-web-expose-i18n)

Ride module to expose the i18n translator to javascript.

How It Works?
-------------

[](#how-it-works)

When this module is installed, the translator.js will be added to your HTML views. This will make the Ride translator object available in Javascript. You can request translations from it through the *translate* method. Once all your translations are requested, you will have to submit the keys through the *submitTranslationKeys*. Those keys will be included in the view from then on in the following requests.

Code Sample
-----------

[](#code-sample)

You can translate a string in javascript with the following function:

```
rideApp.translator.translate('button.save');
rideApp.translator.translate('success.data.saved', {data: "Sme"});
```

Once all translations are requested, you need to submit these keys to make them available in the following requests:

```
rideApp.translator.submitTranslationKeys();
```

Related Modules
---------------

[](#related-modules)

- [ride/app](https://github.com/all-ride/ride-app)
- [ride/app-i18n](https://github.com/all-ride/ride-app-i18n)
- [ride/lib-config](https://github.com/all-ride/ride-lib-config)
- [ride/lib-event](https://github.com/all-ride/ride-lib-event)
- [ride/lib-mvc](https://github.com/all-ride/ride-lib-mvc)
- [ride/lib-http](https://github.com/all-ride/ride-lib-http)
- [ride/lib-i18n](https://github.com/all-ride/ride-lib-i18n)
- [ride/web](https://github.com/all-ride/ride-web)
- [ride/web-i18n](https://github.com/all-ride/ride-web-i18n)

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

[](#installation)

You can use [Composer](http://getcomposer.org) to install this application.

```
composer require ride/web-i18n-expose

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 79.2% 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 ~268 days

Total

5

Last Release

2974d ago

Major Versions

0.1.2 → 1.0.02016-10-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d98d3f0d5db5eb241c6ee74bcee87d1e7dc1aaf7942b933d68e612ee2352eea?d=identicon)[ride-user](/maintainers/ride-user)

---

Top Contributors

[![kayalion](https://avatars.githubusercontent.com/u/2340819?v=4)](https://github.com/kayalion "kayalion (19 commits)")[![dduupp](https://avatars.githubusercontent.com/u/10728938?v=4)](https://github.com/dduupp "dduupp (4 commits)")[![bartverbruggen](https://avatars.githubusercontent.com/u/146232?v=4)](https://github.com/bartverbruggen "bartverbruggen (1 commits)")

### Embed Badge

![Health badge](/badges/ride-web-i18n-expose/health.svg)

```
[![Health](https://phpackages.com/badges/ride-web-i18n-expose/health.svg)](https://phpackages.com/packages/ride-web-i18n-expose)
```

PHPackages © 2026

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