PHPackages                             jawabapp/localization - 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. [Admin Panels](/categories/admin)
4. /
5. jawabapp/localization

ActiveLibrary[Admin Panels](/categories/admin)

jawabapp/localization
=====================

A comprehensive, modern Laravel package for managing multilingual applications with database-driven translations, automatic locale detection, and a beautiful admin interface.

1.1.3(8mo ago)021MITCSSPHP ^8.2CI failing

Since May 29Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/jawabapp/localization)[ Packagist](https://packagist.org/packages/jawabapp/localization)[ Docs](https://github.com/jawabapp/localization)[ GitHub Sponsors](https://github.com/sponsors/jawabapp)[ RSS](/packages/jawabapp-localization/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (0)

🌍 Laravel Localization Package
==============================

[](#-laravel-localization-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e9821fe8427c9d30794991f58c8872394efb20e48929997f7165ec366cfd02b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a617761626170702f6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jawabapp/localization)[![Total Downloads](https://camo.githubusercontent.com/6efa56d7e11dcd52c212fe6a2fcf5d8404f4efd351f934a3ceeff63974ac0bd5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a617761626170702f6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jawabapp/localization)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![PHP](https://camo.githubusercontent.com/049bff54550325d2cf7f2c925239da65b40a2ae965b7043e08b461ae33aecbcb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d626c75653f7374796c653d666c61742d737175617265)](https://php.net)[![Laravel](https://camo.githubusercontent.com/8f5064dccc7114d4e1b49598369fc49b5cc4ed06e87cb62166fb26c2ecbce9cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302532422d7265643f7374796c653d666c61742d737175617265)](https://laravel.com)

A comprehensive, modern Laravel package for managing multilingual applications with database-driven translations, automatic locale detection, and a beautiful admin interface. Built for Laravel 10+ with full support for the latest language directory structure.

✨ Features
----------

[](#-features)

- 🌐 **12+ Languages**: Pre-configured support for major world languages
- 🎯 **Smart Locale Detection**: Browser, URL, session, and cookie-based detection
- 📁 **Modern Laravel Compatibility**: Laravel 10/11 `lang/` directory structure
- 🗂️ **Dual Format Support**: Both PHP arrays and JSON translations
- 🗃️ **Database-Driven Translations**: Store translations in database with file fallback
- 🎛️ **Professional Admin Interface**: Beautiful Tailwind CSS interface
- ⚡ **Performance Optimized**: Built-in caching and file-based translations
- 🔧 **Artisan Commands**: CLI tools for import/export and management
- 🛣️ **SEO Friendly**: Automatic hreflang tags and localized URLs
- 📱 **API Support**: RESTful API with intelligent locale detection
- 🔄 **Hot Reloading**: Automatic file export on database changes
- 🔀 **Flexible Loading**: Database-first with automatic file fallback

📋 Requirements
--------------

[](#-requirements)

- **PHP**: 8.2 or higher
- **Laravel**: 10.0 or higher
- **Extensions**: mbstring, json

🚀 Quick Installation
--------------------

[](#-quick-installation)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require jawabapp/localization
```

### 2. Publish Configuration

[](#2-publish-configuration)

```
# Publish config file
php artisan vendor:publish --tag=localization-config

# Publish and run migrations
php artisan vendor:publish --tag=localization-migrations
php artisan migrate
```

### 3. Configure Middleware

[](#3-configure-middleware)

**For Laravel 11+**, add the middleware to your `bootstrap/app.php`:

```
