webduonederland / laravel-missing-translations
Laravel package to detect and store missing translations in a database table
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.3
- laravel/framework: ^12.0
Requires (Dev)
- larastan/larastan: ^3.7
- laravel/pint: ^1.25
- orchestra/testbench: ^10.6
README
This package detects missing Laravel translations and stores them in a database table. This makes it easy to track and add missing entries to your translation files.
Requirements
- Laravel 12 or higher
- PHP 8.3 or higher
Installation
You can install the package via composer:
composer require webduonederland/laravel-missing-translations
Run the migrations with:
php artisan migrate
Usage
The package monitors for missing translations whenever a Laravel translation function, such as:
__('Hello world')
or
@lang('Hello world!')
doesn’t find a matching entry. When this happens, the package saves the string in the missing_translations
database table.
License
The MIT License (MIT). Please see License File for more information.