PHPackages                             jobmetric/laravel-translation - 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. jobmetric/laravel-translation

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

jobmetric/laravel-translation
=============================

This is a package for translating the contents of different Laravel projects.

3.9.0(1mo ago)10642[1 issues](https://github.com/jobmetric/laravel-translation/issues)5MITPHPPHP &gt;=8.0.1CI passing

Since Aug 25Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/jobmetric/laravel-translation)[ Packagist](https://packagist.org/packages/jobmetric/laravel-translation)[ Docs](https://doc.jobmetric.net/package/laravel-translation)[ RSS](/packages/jobmetric-laravel-translation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (12)Versions (46)Used By (5)

[![Contributors](https://camo.githubusercontent.com/7757d40658574b2b26d4d7807191ea7078b6c41579f40bf09c41ebb47d5b6d42/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6a6f626d65747269632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/jobmetric/laravel-translation/graphs/contributors)[![Forks](https://camo.githubusercontent.com/de32fe9fe650e5404fee632e2e7b2bbc17901c2cb930e4ae89b2f71297359393/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6a6f626d65747269632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d466f726b)](https://github.com/jobmetric/laravel-translation/network/members)[![Stargazers](https://camo.githubusercontent.com/a715580c0f24f8a2bf91e77b4acabefbc279ba6ffae96a64a6a7fa6b19c98055/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6a6f626d65747269632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/jobmetric/laravel-translation/stargazers)[![MIT License](https://camo.githubusercontent.com/03415366ce39d0c14cc1258c7fa1a2197ce14420a3f5097ce46469fddaedd2ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f626d65747269632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/jobmetric/laravel-translation/blob/master/LICENCE.md)[![LinkedIn](https://camo.githubusercontent.com/eb590f47a3fca74584d18db8dd3e985ae3d786f50cd41b7530c3af3885da233c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e6b6564496e2d626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e6b6564696e26636f6c6f72423d353535)](https://linkedin.com/in/majidmohammadian)

Laravel Translation
===================

[](#laravel-translation)

**Build Multilingual Applications. Effortlessly.**

Laravel Translation simplifies the management of multilingual content within Laravel applications. Stop managing translations manually and start building truly multilingual applications with ease. It offers dynamic translation storage, retrieval, and updates, seamlessly integrating with your models through the `HasTranslation` trait. This is where powerful multilingual support meets developer-friendly simplicity—giving you complete control over translation management without the complexity.

Why Laravel Translation?
------------------------

[](#why-laravel-translation)

### Seamless Model Integration

[](#seamless-model-integration)

Integrate translations directly with your Eloquent models through a simple trait. No complex setup, no additional services—just add the trait and define which fields should be translatable. Your models become multilingual instantly.

### Flexible Field Control

[](#flexible-field-control)

You have complete control over which fields can be translated. Whitelist specific fields or allow all fields with a simple configuration. This flexibility ensures you only translate what needs to be translated, keeping your database clean and efficient.

### Version History Built-In

[](#version-history-built-in)

Track every change to your translations with optional versioning. See what changed, when it changed, and restore previous versions if needed. Perfect for content management systems where translation history matters.

### Powerful Query Capabilities

[](#powerful-query-capabilities)

Search and filter your models based on translated content. Find products by their translated names, filter posts by translated titles, and build multilingual search functionality with ease.

What is Translation Management?
-------------------------------

[](#what-is-translation-management)

Translation management is the process of storing and retrieving content in multiple languages. In a traditional Laravel application, you might store translations in language files or use separate columns for each language. Laravel Translation takes a different approach:

- **Database-Driven**: Translations are stored in the database, making them dynamic and manageable through your application
- **Per-Field Translations**: Each field can have different translations for different locales
- **Version Control**: Track changes to translations over time
- **Query Support**: Search and filter by translated content directly in your queries

Consider a blog post that needs to be available in multiple languages. With Laravel Translation, you can store the title, summary, and body in different locales, retrieve the appropriate translation based on the user's locale, track version history if content changes over time, and search for posts by their translated titles or content. The power of translation management lies not only in storing multiple language versions but also in making them easily accessible, searchable, and manageable throughout your application.

What Awaits You?
----------------

[](#what-awaits-you)

By adopting Laravel Translation, you will:

- **Build truly multilingual applications** - Support as many languages as you need
- **Simplify translation management** - No more complex translation logic in your code
- **Improve content management** - Version history and easy updates
- **Enhance user experience** - Deliver content in users' preferred languages
- **Scale effortlessly** - Handle translations for thousands of models and fields
- **Maintain clean code** - Simple, intuitive API that follows Laravel conventions

Quick Start
-----------

[](#quick-start)

Install Laravel Translation via Composer:

```
composer require jobmetric/laravel-translation
```

Documentation
-------------

[](#documentation)

Ready to transform your Laravel applications? Our comprehensive documentation is your gateway to mastering Laravel Translation:

**[📚 Read Full Documentation →](https://jobmetric.github.io/packages/laravel-translation/)**

The documentation includes:

- **Getting Started** - Quick introduction and installation guide
- **HasTranslation** - Integrate translations into your models
- **Requests** - Complete API reference for TranslationArrayRequest, MultiTranslationArrayRequest, TranslationTypeObjectRequest, and MultiTranslationTypeObjectRequest
- **Resources** - TranslationResource and TranslationCollectionResource for API responses
- **Validation Rules** - TranslationFieldExistRule for ensuring translation uniqueness
- **Events** - Hook into translation lifecycle
- **Real-World Examples** - See how it works in practice

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

[](#contributing)

Thank you for participating in `laravel-translation`. A contribution guide can be found [here](CONTRIBUTING.md).

License
-------

[](#license)

The `laravel-translation` is open-sourced software licensed under the MIT license. See [License File](LICENCE.md) for more information.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance84

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 96.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 ~21 days

Total

45

Last Release

49d ago

Major Versions

1.0.0 → 2.0.02024-01-14

2.24.0 → 3.0.02025-08-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/b00d08bd4b0b765ee2d33719a535e6cb49c04fb945078a0809d5c05e6f16ee96?d=identicon)[majidmohammadian](/maintainers/majidmohammadian)

---

Top Contributors

[![MajidMohammadian](https://avatars.githubusercontent.com/u/2099965?v=4)](https://github.com/MajidMohammadian "MajidMohammadian (200 commits)")[![Bagheri-Matin](https://avatars.githubusercontent.com/u/239607447?v=4)](https://github.com/Bagheri-Matin "Bagheri-Matin (5 commits)")[![H-0-O](https://avatars.githubusercontent.com/u/93187411?v=4)](https://github.com/H-0-O "H-0-O (3 commits)")

---

Tags

laravellaravel-packagelaravel-translationlaravel-translation-managerpackagetranslationtranslatorlaravelpackagetranslationmodeltranslatablejobmetric

### Embed Badge

![Health badge](/badges/jobmetric-laravel-translation/health.svg)

```
[![Health](https://phpackages.com/badges/jobmetric-laravel-translation/health.svg)](https://phpackages.com/packages/jobmetric-laravel-translation)
```

###  Alternatives

[longman/laravel-multilang

Package to integrate multi language (multi locale) functionality in Laravel 5.x

5514.4k1](/packages/longman-laravel-multilang)[igaster/laravel-translate-eloquent

Description

403.4k](/packages/igaster-laravel-translate-eloquent)

PHPackages © 2026

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