New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

typidesign/laravel-artisan-translations

An artisan command to update json translation files.
32,841 4
Install
composer require typidesign/laravel-artisan-translations
Latest Version:4.0
PHP:^8.1
Laravel:10 – 13
Older releases:9
License:MIT
Last Updated:Mar 13, 2026
Links: GitHub  ·  Packagist
Maintainer: Samuel De Backer

Manage translations in json files

Latest Version on Packagist Tests PHPStan Rector Pint

This package provides artisan commands to manage translations in Laravel JSON files.

Installation

You can install the package via composer:

composer require typidesign/laravel-artisan-translations

The service provider will be auto-discovered by Laravel.

Usage

Add translations from a single file

php artisan translations:add vendor/typicms/pages/src/lang/fr.json

Every translation present in this file will be added to lang/fr.json.

Add translations from a directory

php artisan translations:add vendor/typicms/pages/src/lang

Every translation found in this directory will be added to lang/.

Overwrite translations

By default, existing translation keys will not be overwritten. Use the --force option to overwrite them:

php artisan translations:add vendor/typicms/pages/src/lang --force

Remove translations

Remove translations found in a file or directory from lang/:

php artisan translations:remove vendor/typicms/pages/src/lang/fr.json
php artisan translations:remove vendor/typicms/pages/src/lang

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email samuel@typidesign.be instead of using the issue tracker.

Credits

License

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

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
4.0 ^8.1 ^10.0|^11.0|^12.0|^13.0 MIT
3.2 ^8.1 ^10.0|^11.0|^12.0 MIT
3.1 ^8.1 ^10.0|^11.0 MIT
3.0 ^8.1 ^10.0 MIT
2.0.0 ^8.0.2 ^9.0 MIT