Skip to content

Commit ebd596a

Browse files
committed
README update
1 parent 1417a42 commit ebd596a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ Finally, to scan your application for missing translation keys just run:
5656
php artisan translation:scan
5757
```
5858

59+
5960
## Customization
6061

62+
### Publishing the configuration
63+
6164
You can change the default paths to scan your application from, the output directory where your JSON translation files are located, and even the file extensions you want to scan from.
6265

6366
First, publish the configuration file:
@@ -66,4 +69,8 @@ First, publish the configuration file:
6669
php artisan vendor:publish --provider="JsonTranslationHelper\TranslationHelperServiceProvider"
6770
```
6871

69-
Then in the `config/translation-helper.php` you can change default values of `scan_directories`, `file_extensions` and `output_directory`.
72+
Then in the `config/translation-helper.php` you can change default values of `scan_directories`, `file_extensions` and `output_directory`.
73+
74+
### Extend file extensions
75+
76+
You can add more file extensions to `file_extensions` array in the `config/translation-helper.php` configuration file to scan, let's say, `.vue` or `.js` files.

0 commit comments

Comments
 (0)