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-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,15 +31,15 @@ It will create configuration file in `app/config` with name `lang-generator`
31
31
32
32
### About configuration
33
33
34
-
<b>file_type</b>: is responsible for the type of the generated file. It is possible to generate both a json and an php array files. Posible values: `array` , `json`
34
+
<b>file_type</b>: is responsible for the type of the generated file. It is possible to generate both a json and a php array files. Possible values: `array` , `json`
35
35
36
36
---
37
37
38
-
<b>file_name</b>: is responsible for the name of the generated files. By default it is `lang`.
38
+
<b>file_name</b>: is responsible for the name of the generated files. By default, it is `lang`.
39
39
40
40
---
41
41
42
-
<b>languages</b>: is responsible for the generated languages and accepts an array. Language folders with the specified data will be created. By default it just `en`.
42
+
<b>languages</b>: is responsible for the generated languages and accepts an array. Language folders with the specified data will be created. By default, it just `en`.
43
43
44
44
---
45
45
@@ -54,7 +54,7 @@ Existing keys will not be removed, only new ones will be added.
54
54
php artisan lang:generate
55
55
```
56
56
it will create new language files with found translation keys.
is responsible for the type of the generated file. It is possible to generate both a json and an php array files. Posible values: `array` , `json`. <br>Example: `php artisan lang:generate --type=json`
71
+
is responsible for the type of the generated file. It is possible to generate both a json and a php array files. Possible values: `array` , `json`. <br>Example: `php artisan lang:generate --type=json`
72
72
73
73
---
74
74
75
75
`--name=` or `-N`:
76
76
77
-
is responsible for the name of the generated files. By default it is `lang`.
77
+
is responsible for the name of the generated files. By default, it is `lang`.
is responsible for the generated languages and accepts an array. Language folders with the specified data will be created. By default it just `en`. <br>Example: `php artisan lang:generate --langs="en" --langs="es"`
85
+
is responsible for the generated languages and accepts an array. Language folders with the specified data will be created. By default, it just `en`. <br>Example: `php artisan lang:generate --langs="en" --langs="es"`
If you specify this flag, new translations found will be added at the end of the JSON file, which might be useful for automatisation or version control. Only usable with JSON as type.
107
+
If you specify this flag, new translations found will be added at the end of the JSON file, which might be useful for automation or version control. Only usable with JSON as type.
0 commit comments