You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,8 +56,11 @@ Finally, to scan your application for missing translation keys just run:
56
56
php artisan translation:scan
57
57
```
58
58
59
+
59
60
## Customization
60
61
62
+
### Publishing the configuration
63
+
61
64
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.
62
65
63
66
First, publish the configuration file:
@@ -66,4 +69,8 @@ First, publish the configuration file:
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