typidesign/laravel-artisan-translations

An artisan command to update json translation files.

Maintainers

👁 Samuel De Backer

Package info

github.com/typidesign/laravel-artisan-translations

pkg:composer/typidesign/laravel-artisan-translations

Statistics

Installs: 30 305

Dependents: 2

Suggesters: 0

Stars: 4

Open Issues: 0

4.0 2026-03-13 13:31 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 820e9cf6ed5c26becdae98fedba4d5de48437f64

typidesignlaravel-artisan-translations

This package is auto-updated.

Last update: 2026-06-13 13:57:16 UTC


README

👁 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.