Download the PHP package nanuc/missing-translation without Composer
On this page you can find all versions of the php package nanuc/missing-translation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nanuc/missing-translation
More information about nanuc/missing-translation
Files in nanuc/missing-translation
Package missing-translation
Short Description This is my package missing-translation
License MIT
Homepage https://github.com/nanuc/missing-translation
Informations about the package missing-translation
Missing translations
Installation
You can install the package via composer:
Usage
Find and enter missing translations
Report missing translations
This is basically copied from https://github.com/barryvdh/laravel-translation-manager with the extension that missing translations are reported to Flare.
Most translations can be found by using the Find command (see above), but in case you have dynamic keys (variables/automatic forms etc), it can be helpful to 'listen' to the missing translations. To detect missing translations, we can swap the Laravel TranslationServiceProvider with a custom provider. In your config/app.php, comment out the original TranslationServiceProvider and add the one from this package:
This functionality is disabled by default. You can enable it as followed in .env
:
For this to work correctly please also set the following .env
parameter to your base language (defaults to en
).
This will extend the Translator and will send a report to Flare, whenever a key is not found, so you have to visit the pages that use them. You shouldn't use this in production, just in development to translate your views, then just switch back.
License
The MIT License (MIT). Please see License File for more information.