Skip to content

Scans Laravel projects for missing translation keys and then writes them into individual json files for you to fill in.

License

Notifications You must be signed in to change notification settings

fszotyi/laravel-langscanner-fork

 
 

Repository files navigation

laravel-langscanner-fork

This repo is a fork of the druc/laravel-langscanner package.

Installation

You can install the package via composer:

In composer.json add:

 "repositories": [
     {
         "type": "vcs",
         "url": "[email protected]:fszotyi/laravel-langscanner-fork.git"
     }
 ]
 composer require druc/laravel-langscanner:dev-master --dev

Usage

To get started with the package capabilities you can:

 php artisan langscanner --help

Scan your project for missing translations:

// outputs and writes translations for the specified language (dutch)
php artisan langscanner nl

// outputs and writes translations in the existing {language}.json files
php artisan langscanner

// to scan a module and generate the JSON files into the module (if --path= is provided it will generate the JSON inside the provided "path/resources/lang" directory)
php artisan langscanner en --path=app/Modules/Dashboard

//  to exclude a path from the scan (it will generate the output JSON inside the core app "app_root/lang" directory)
php artisan langscanner en --exclude-path=app/Modules

Credits

This package is based on joedixon/laravel-translation and themsaid/laravel-langman-gui

License

The MIT License (MIT). Please see License File for more information.

About

Scans Laravel projects for missing translation keys and then writes them into individual json files for you to fill in.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%