localizator icon indicating copy to clipboard operation
localizator copied to clipboard

How to ignore folder

Open william-koffi opened this issue 2 years ago • 3 comments

I want to ignore all files in the resources/views/vendor folder.

william-koffi avatar Apr 30 '22 20:04 william-koffi

hi @william-koffi, you can add a pattern to localizator.search.patterns that will be used to ignore files from the vendor folder.

amiranagram avatar May 04 '22 09:05 amiranagram

Would it be possible to add an ignore option for folder ? For exemple, we have a vendor/nova folder which is translated with PHP shortkey. But the Blade file are translated with JSON and fallback text.

mrleblanc101 avatar Jun 08 '22 16:06 mrleblanc101

So in config instead of search.dirs, maybe search.include and search.exclude

mrleblanc101 avatar Jun 08 '22 16:06 mrleblanc101

I added the exclude options, which is basically an array of directories that will be excluded relative to the directories in search.dirs.

Example:

'dirs'      => ['resources/views'],
'exclude' => ['vendor'],

Here, vendor directory will be excluded from resources/views.

amiranagram avatar Nov 08 '22 10:11 amiranagram