PHPackages                             thetminnhtun/laravel-localization-js - 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. thetminnhtun/laravel-localization-js

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

thetminnhtun/laravel-localization-js
====================================

Laravel localization for JavaScript

v0.1.1(4y ago)11.2k1MITPHPPHP ^7.3

Since Dec 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/thetminnhtun/laravel-localization-js)[ Packagist](https://packagist.org/packages/thetminnhtun/laravel-localization-js)[ RSS](/packages/thetminnhtun-laravel-localization-js/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Laravel Localization JS
=======================

[](#laravel-localization-js)

[![Issues](https://camo.githubusercontent.com/8dec1e4b67df618c450d4ff46356ea1e7e1959d8b5ad9d0768102a59e94053d0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f746865746d696e6e6874756e2f6c61726176656c2d6c6f63616c697a6174696f6e2d6a73)](https://github.com/thetminnhtun/laravel-localization-js/issues)[![Forks](https://camo.githubusercontent.com/dba2ec012e3431096e73753352875ba9b90866bcfc2d77f7d3bf4dbf5d57fae7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f746865746d696e6e6874756e2f6c61726176656c2d6c6f63616c697a6174696f6e2d6a73)](https://camo.githubusercontent.com/dba2ec012e3431096e73753352875ba9b90866bcfc2d77f7d3bf4dbf5d57fae7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f746865746d696e6e6874756e2f6c61726176656c2d6c6f63616c697a6174696f6e2d6a73)[![Stars](https://camo.githubusercontent.com/d1b47047c3394f5e350c28ed38b698e7ec1d2379cb994ecd628aaeda64c3e665/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746865746d696e6e6874756e2f6c61726176656c2d6c6f63616c697a6174696f6e2d6a73)](https://camo.githubusercontent.com/d1b47047c3394f5e350c28ed38b698e7ec1d2379cb994ecd628aaeda64c3e665/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746865746d696e6e6874756e2f6c61726176656c2d6c6f63616c697a6174696f6e2d6a73)

Laravel localization for JavaScript

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

[](#requirements)

1. PHP 7.0 or higher
2. Laravel 6.0 or higher

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

[](#installation)

```
composer require thetminnhtun/laravel-localization-js

```

Include the asset

```

    ...

```

Publish the asset file

```
php artisan vendor:publish --tag=localization-js

```

Usage
-----

[](#usage)

Create the language files what you want. For example, we will create `english` and `myanmar`.

```
/resources
    /lang
        en.json
        my.json

```

In `en.json`

```
{
    "Welcome": "Welcome",
    "Hello": "Hello :name"
}
```

In `my.json`

```
{
    "Welcome": "ကြိုဆိုပါတယ်။",
    "Hello": "မင်္ဂလာပါ :name။"
}
```

Getting a message from JavaScript

```
console.log(Lang.get('Welcome'));
console.log(Lang.get('Hello', {name: 'Mg Mg'}));
```

Ouput

```
// What if locale is `en`
Welcome
Hello Mg Mg

// or what if locale is `en`
ကြိုဆိုပါတယ်။
မင်္ဂလာပါ Mg Mg။

```

Avaliable another ways

```
Lang.get('Welcome');
```

```
__('Welcome');
```

```
trans('Welcome');
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT](https://opensource.org/licenses/MIT) license.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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 ~33 days

Total

2

Last Release

1632d ago

PHP version history (2 changes)v0.1.0PHP ^7.3|^8.0

v0.1.1PHP ^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/efd518b275f54f8aa695af6b47f598f53595259099c9e29c282104041ef421c8?d=identicon)[Thet Minn Htun](/maintainers/Thet%20Minn%20Htun)

---

Top Contributors

[![thetminnhtun](https://avatars.githubusercontent.com/u/29599990?v=4)](https://github.com/thetminnhtun "thetminnhtun (10 commits)")[![mtm-thetminnhtun](https://avatars.githubusercontent.com/u/59432845?v=4)](https://github.com/mtm-thetminnhtun "mtm-thetminnhtun (1 commits)")

### Embed Badge

![Health badge](/badges/thetminnhtun-laravel-localization-js/health.svg)

```
[![Health](https://phpackages.com/badges/thetminnhtun-laravel-localization-js/health.svg)](https://phpackages.com/packages/thetminnhtun-laravel-localization-js)
```

###  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.

1927.0k1](/packages/smmoosavi-php-gettext)[saeven/circlical-po-editor

Gettext \*.PO file editor and parser for PHP.

118.1k1](/packages/saeven-circlical-po-editor)

PHPackages © 2026

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