Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laravel-translations

> 前端框架
Open source

Laravel Translations UI package provides a user-friendly interface for managing translations in your Laravel application. It simplifies tasks such as adding, ed

816 stars0 likes1 views
WebsiteGitHub

About

Laravel Translations UI package provides a user-friendly interface for managing translations in your Laravel application. It simplifies tasks such as adding, ed

Installation | Usage | Configuration | Updating | Upgrading from v1 | Contributing

Introduction

Laravel Translations provides a beautiful UI for managing your application's translations. Import, edit, search, and export translations — all from a clean dashboard. No npm or Vite required in your project.

Installation

Requirements: PHP 8.3+ and Laravel 11.x or 12.x

bash
composer require outhebox/laravel-translations

Run the install command to publish assets, config, and migrations:

bash
php artisan translations:install

Run migrations:

bash
php artisan migrate

Visit /translations in your browser.

Usage

Importing Translations

bash
php artisan translations:import

To overwrite existing translations:

bash
php artisan translations:import --fresh

Exporting Translations

Export from the UI or via command:

bash
php artisan translations:export

Check Status

bash
php artisan translations:status

Configuration

Publish the config file:

bash
php artisan vendor:publish --tag=translations-config

This publishes config/translations.php where you can configure the path, middleware, authentication, source language, import/export settings, and more.

Updating

After updating the package, re-publish the assets:

bash
php artisan translations:update

You can automate this in your composer.json:

json
{
    "scripts": {
        "post-update-cmd": ["@php artisan translations:update --ansi"]
    }
}

Looking for AI-powered translations, revision history, and team collaboration? Check out Laravel Translations Pro.

Upgrading from v1

v2 is a full rewrite with a new frontend (React/Inertia), new database structure, and updated namespace. Click to expand upgrade instructions.

Steps

  1. Update the package:
bash
composer require outhebox/laravel-translations:^2.0
  1. Run the upgrade command to migrate your v1 data:
bash
php artisan translations:upgrade

This will detect your v1 tables, migrate languages, groups, keys, and translations to the new structure.

  1. Clean up old tables (optional):
bash
php artisan translations:upgrade --cleanup
  1. Publish the new assets:
bash
php artisan translations:install

Breaking Changes

  • Namespace: Outhebox\TranslationsUI is now Outhebox\Translations
  • Frontend: Vue has been replaced with React (no action needed — assets are pre-compiled)
  • Database: New table structure — run the upgrade command above
  • Config: New structure — re-publish with --tag=translations-config

Contributing

Please see CONTRIBUTING for details.

Credits

  • Mohamed Ashraf
  • All Contributors

License

The MIT License (MIT). Please see License File for more information.

Issues· 2 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPinertiainertiajslaravelspatie

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架