PHPackages                             pod-point/laravel-javascript-lang - 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. pod-point/laravel-javascript-lang

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

pod-point/laravel-javascript-lang
=================================

Laravel package that exposes translations and routes to JavaScript

v3.0.2(2y ago)04.7k2MITPHPPHP ^7.1||^8.1||^8.2

Since Feb 5Pushed 2y ago8 watchersCompare

[ Source](https://github.com/Pod-Point/laravel-javascript-lang)[ Packagist](https://packagist.org/packages/pod-point/laravel-javascript-lang)[ RSS](/packages/pod-point-laravel-javascript-lang/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (2)Versions (10)Used By (0)

Laravel JavaScript Lang
=======================

[](#laravel-javascript-lang)

[![Packagist](https://camo.githubusercontent.com/eba61751ad17d9dcf1ba52881378d11eb633deba34aeb8d1c97d3120e6a338a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f506f642d506f696e742f6c61726176656c2d6a6176617363726970742d6c616e672e737667)](https://packagist.org/packages/pod-point/laravel-javascript-lang)

A Laravel package that exposes translations to JavaScript.

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

[](#installation)

Require the package in composer:

```
"require": {
    "pod-point/laravel-javascript-lang": "^1.0"
},
```

Add the service provider to your `config/app.php` providers array:

```
'providers' => [
    PodPoint\JsLang\Providers\ServiceProvider::class
]
```

Then finally, publish the config files:

```
php artisan vendor:publish --provider="PodPoint\JsLang\Providers\ServiceProvider"
```

Usage
-----

[](#usage)

Now the varable `$jslang` is available in your view. We recommend attaching it to a data tag on your body element:

```

```

There is a provided JavaScript module with a helper method you can use to retrieve the translations:

```
import jsLang from '../lib/jslang';

const string = jsLang.get('orders.form.error');
```

Or you can get the data yourself:

```
JSON.parse(document.body.getAttribute('data-jslang'))
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~180 days

Total

7

Last Release

732d ago

Major Versions

v1.0 → 2.x-dev2022-07-11

v2.0 → v3.0.02023-07-03

PHP version history (4 changes)v1.0PHP &gt;=5.5.9

2.x-devPHP &gt;=7.1

v3.0.0PHP ^7.1||^8.2

v3.0.1.x-devPHP ^7.1||^8.1||^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ce40bc096123bdd8dabab907d789c0de2ebd015fc4d1a11b692faa85be8e4ec?d=identicon)[pod-point](/maintainers/pod-point)

---

Top Contributors

[![HasnatH](https://avatars.githubusercontent.com/u/3200859?v=4)](https://github.com/HasnatH "HasnatH (5 commits)")[![clemblanco](https://avatars.githubusercontent.com/u/668419?v=4)](https://github.com/clemblanco "clemblanco (3 commits)")[![threesquared](https://avatars.githubusercontent.com/u/892142?v=4)](https://github.com/threesquared "threesquared (3 commits)")[![cfpinto](https://avatars.githubusercontent.com/u/11293388?v=4)](https://github.com/cfpinto "cfpinto (2 commits)")[![tpawelecpl](https://avatars.githubusercontent.com/u/88137122?v=4)](https://github.com/tpawelecpl "tpawelecpl (2 commits)")

---

Tags

languagelaravelsoftware-teamlaraveltranslationslanguagejavascriptroutes

### Embed Badge

![Health badge](/badges/pod-point-laravel-javascript-lang/health.svg)

```
[![Health](https://phpackages.com/badges/pod-point-laravel-javascript-lang/health.svg)](https://phpackages.com/packages/pod-point-laravel-javascript-lang)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M305](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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