potsky / laravel-localization-helpers

🎌 Artisan commands to generate and update lang files automatically
GNU General Public License v3.0
187 stars 38 forks source link

Specific 'Lang' file to ignore #44

Closed FilipKrizanic closed 7 years ago

FilipKrizanic commented 7 years ago

In Laravel 5.1.x / 2.2.4 In laravel-localization-helpers.php is an array in which developer can specify which language file will be ignored.

Language files:

So if someone would want to filter only one cms.php under de/cms.php and would want all the other cms.php translation files to be untouched, then some additional conditions would have to be implemented.

specific file ignore Example:

'ignore_lang_files' => array( 'validation' , '/resources/lang/de/cms.php', ) ,

FilipKrizanic commented 7 years ago

Quick suggestion: LocalizationMissing.php could look like: (line 249 - 252)

Already tested and it works.