2017 © Pedro Peláez
 

library laravel-find-js-localizations

A tools that helps finding untranslated strings in JavaScript files in Laravel projects using rmariuzzo/Laravel-JS-Localization and andywer/laravel-js-localization

image

clentfort/laravel-find-js-localizations

A tools that helps finding untranslated strings in JavaScript files in Laravel projects using rmariuzzo/Laravel-JS-Localization and andywer/laravel-js-localization

  • Monday, March 20, 2017
  • by clentfort
  • Repository
  • 2 Watchers
  • 4 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Find Localizations in Laravel JavaScript Assets

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., (*1)

Installation

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:, (*2)

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., (*3)

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:, (*4)

php artisan vendor:publish

Verify the package was installed successfully by running php artisan list, it should now include the command js-localization:missing., (*5)

Configuration

The command can be configured through the configuration-file in config/laravel-find-js-localizations.php., (*6)

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

Usage

Simply run php artisan js-localization:missing., (*7)

The command will write the files in the array-dot notation!, (*8)

License

MIT, (*9)

Contributing

If you want to contribute feel free to send a PR., (*10)

  • If you are improving on the JavaScript please make sure you run prettier with the --single-quote flag before creating the PR.
  • If you are improving on the PHP please make sure you do not brake the 80 chars per line limit and make sure to run php-cs-fixer before you create a PR.

Thank you., (*11)

The Versions

20/03 2017

dev-master

9999999-dev

A tools that helps finding untranslated strings in JavaScript files in Laravel projects using rmariuzzo/Laravel-JS-Localization and andywer/laravel-js-localization

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christian Lentfort

19/03 2017

v1.0.0

1.0.0.0

A tools that helps finding untranslated strings in JavaScript files in Laravel projects using rmariuzzo/Laravel-JS-Localization and andywer/laravel-js-localization

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christian Lentfort