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

ActiveLibrary

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

Laravel package that exposes translations and routes to JavaScript

v3.0.2(1y ago)04.6k2MITPHPPHP ^7.1||^8.1||^8.2

Since Feb 5Pushed 1y 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 1mo ago

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

41

—

FairBetter than 89% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity21

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

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

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[opgginc/codezero-laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

2770.1k1](/packages/opgginc-codezero-laravel-localized-routes)[highsolutions/laravel-translation-manager

Manage Laravel Translations

1518.8k](/packages/highsolutions-laravel-translation-manager)

PHPackages © 2026

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