PHPackages                             vwinck-dev/laravel-translator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vwinck-dev/laravel-translator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vwinck-dev/laravel-translator
=============================

Translation files and localization utilities for Laravel.

v0.1.0(2mo ago)10MITPHPPHP ^8.2

Since May 8Pushed 1w agoCompare

[ Source](https://github.com/vwinck-dev/laravel-translator)[ Packagist](https://packagist.org/packages/vwinck-dev/laravel-translator)[ RSS](/packages/vwinck-dev-laravel-translator/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (1)Dependencies (8)Versions (4)Used By (0)

Laravel Translator (WORK IN PROGRESS)
=====================================

[](#laravel-translator-work-in-progress)

 [ ![Packagist Version](https://camo.githubusercontent.com/046c342fa10a7d7c124a080bde0a6a65fca3f0a60dd68a04cad668e18915cbf3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7677696e636b2d6465762f6c61726176656c2d7472616e736c61746f723f636f6c6f723d663238643161267374796c653d666c61742d737175617265) ](https://packagist.org/packages/vwinck-dev/laravel-translations) [ ![Total Downloads](https://camo.githubusercontent.com/bc64a573dced1fd4bc1f85e708d21a4c79cf16e1b9e3e8e686849db4cf7b554d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7677696e636b2d6465762f6c61726176656c2d7472616e736c61746f723f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/vwinck-dev/laravel-translator) [ ![License](https://camo.githubusercontent.com/ac049ef4e7a0b7196b09add6ac2d4f180e544c0ac779c2b2ac2fd2723a209579/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75653f7374796c653d666c61742d737175617265) ](https://opensource.org/license/mit) [ ![CI Status](https://camo.githubusercontent.com/7884d832f89b6ceda17f8e3b882f0ec566240b38ca67aa0e76bb483df31155ca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7677696e636b2d6465762f6c61726176656c2d7472616e736c61746f722f63692e796d6c3f7374796c653d666c61742d737175617265266c6162656c3d4349) ](https://github.com/vwinck-dev/laravel-translator/actions)

 Translation files and localization utilities for Laravel - publish, manage and extend your app's translations with a single Artisan command.

---

Features
--------

[](#features)

- **Auto-discovery** - zero configuration, works out of the box with Laravel's package system
- **Artisan integration** - publish and update translations via `lang:update`
- **JSON-based** - simple, human-readable translation files
- **Multi-locale** - grow your supported languages incrementally
- **CI/CD ready** - version-controlled translations that fit neatly into automated pipelines

---

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

[](#requirements)

- PHP **8.1+**
- Laravel ^**10.x**

---

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

[](#installation)

```
composer require vwinck-dev/laravel-translator
```

The package registers itself automatically via Laravel's auto-discovery. No manual provider or alias registration needed.

---

Publishing Translations
-----------------------

[](#publishing-translations)

To publish the translation files to your application's `lang/` directory, run:

```
php artisan lang:update
```

Alternatively, use the standard Artisan vendor publish command:

```
php artisan vendor:publish --tag=translations
```

---

Available Locales
-----------------

[](#available-locales)

LocaleLanguageStatus`en`English✅`pt_BR`Portuguese (Brazil)✅> Want to add a new locale? See [Contributing](#contributing).

---

Project Structure
-----------------

[](#project-structure)

```
lang/
├── en.json       # English (base)
└── pt_BR.json    # Portuguese (Brazil)

```

Each file is a flat JSON map of the original string to its translation - compatible with Laravel's `__()` and `trans()` helpers out of the box.

---

Usage
-----

[](#usage)

Use Laravel's built-in translation helpers anywhere in your application:

```
// Blade
{{ __('Attach files by dragging & dropping, selecting or pasting them.') }}

// PHP
__('Attach files by dragging & dropping, selecting or pasting them.');
```

The corresponding `pt_BR.json` entry:

```
{
  "Attach files by dragging & dropping, selecting or pasting them.": "Anexe arquivos arrastando, selecionando ou colando."
}
```

---

Roadmap
-------

[](#roadmap)

- Missing translation detection
- Translation diff command
- Vendor package translation support
- Remote synchronization
- Automatic merge support
- Per-locale installer commands

---

Contributing
------------

[](#contributing)

Contributions, issues, and feature requests are welcome!

1. Fork the repository
2. Create a feature branch: `git checkout -b feat/your-locale`
3. Commit your changes: `git commit -m 'feat: add fr locale'`
4. Push and open a Pull Request

Please follow the existing file naming conventions and ensure your JSON is valid before submitting.

---

License
-------

[](#license)

Distributed under the [MIT License](https://opensource.org/license/mit). © vwinck-dev

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance92

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

77d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/176328088?v=4)[V. Winck](/maintainers/vwinck-dev)[@vwinck-dev](https://github.com/vwinck-dev)

---

Top Contributors

[![vwinck-dev](https://avatars.githubusercontent.com/u/176328088?v=4)](https://github.com/vwinck-dev "vwinck-dev (2 commits)")

---

Tags

helpersi18njson-translationsl10nlanglanguagelaravellaravel-translatorlocalizationpackagephptranslation-filestranslation-managementtranslationstranslatorphplaravellocalizationi18ntranslationslanguagel10nhelperspackagetranslatorlangtranslation-managementjson translationstranslation-files

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vwinck-dev-laravel-translator/health.svg)

```
[![Health](https://phpackages.com/badges/vwinck-dev-laravel-translator/health.svg)](https://phpackages.com/packages/vwinck-dev-laravel-translator)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[laravel-lang/publisher

Localization publisher for your Laravel application

2169.0M51](/packages/laravel-lang-publisher)[laravel-lang/common

Easily connect the necessary language packs to the application

1593.8M37](/packages/laravel-lang-common)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[omaralalwi/lexi-translate

Laravel translation package with morph relationships and caching.

7413.7k6](/packages/omaralalwi-lexi-translate)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7213.0k](/packages/tehwave-laravel-achievements)

PHPackages © 2026

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