Package Data | |
---|---|
Maintainer Username: | clentfort |
Maintainer Contact: | christian@lentfort.com (Christian Lentfort) |
Package Create Date: | 2017-03-07 |
Package Last Update: | 2017-03-20 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-12 15:02:43 |
Package Statistics | |
---|---|
Total Downloads: | 11 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 6 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
A tools that helps finding untranslated strings in Laravel JavaScript assets for projects using rmariuzzo/Laravel-JS-Localization and andywer/laravel-js-localization. Inspired by potsky/laravel-localization-helpers.
The package consists out of two parts; a PHP part, available through composer, and JavaScript part available through npm. First install both parts by running the following:
composer require --dev clentfort/laravel-find-js-localizations
npm install --save-dev laravel-find-js-localizations
After the installation of the packages load the service-provider in your app.
You can do so by adding the following line to the providers
-array in
config/app.php
.
clentfort\LaravelFindJsLocalizations\ArtisanServiceProvider::class,
Now all that is left to do is to publish the configuration to you app, this can be achieved by running:
php artisan vendor:publish
Verify the package was installed successfully by running php artisan list
, it
should now include the command js-localization:missing
.
The command can be configured through the configuration-file in
config/laravel-find-js-localizations.php
.
| Option | Description |
| --- | --- |
| node_executable
| The name or the path to the Node.js-exectuable |
| extension
| The extension of your JavaScript-files |
| directory
| The directory your JavaScript-assets are stored |
| lemma
| The default placeholder text that found keys will have |
Simply run php artisan js-localization:missing
.
The command will write the files in the array-dot notation!
MIT
If you want to contribute feel free to send a PR.
--single-quote
flag before creating the PR.Thank you.