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
@@ -69,47 +69,22 @@ The package currently provides two commands, one for exporting the files and one
69
69
### Export
70
70
71
71
```bash
72
-
php artisan lang:export
73
-
php artisan lang:export en * path/to/export
74
-
php artisan lang:export en auth -A -X
72
+
php artisan lang:export --locale en
73
+
php artisan lang:export --locale en --target fr # export en translations only missing in fr locale
75
74
```
76
75
77
-
When you call command without parameters, export file will be generated for all localization files within default locale. But you can define **locale** explicitly. You can also export only one file (second parameter - **group**) and define where to store file (you can provide name with and without .csv extension). When you use **output** argument, default path is base_path() -> catalog of your whole project.
78
-
But there is few more useful parameters:
79
-
80
-
| name of parameter | description | is required? | default value |
| locale | The locale to be exported. Multiple separated by comma | NO | default lang of application |
83
-
| group | The name of translation file to export | NO |\* - all files |
84
-
| output | Filename of exported translation files | NO | storage/app/lang-import-export.csv |
85
-
| -A / --append | Append name of group to the name of file | NO | empty |
86
-
| -X / --excel | Set file encoding (UTF-16) for Excel | NO | UTF-8 |
87
-
| -D / --delimiter | Field delimiter | NO | , |
88
-
| -E / --enclosure | Field enclosure | NO | " |
89
-
| -T / --target-locale | Only missing keys for for this locale are exported | NO | " |
90
76
### Import
91
77
92
78
```
93
79
php artisan lang:import
94
-
php artisan lang:import en * path/to/import
95
-
php artisan lang:import en auth -X
96
80
```
97
81
98
-
When you call command without parameters - it will try to read default file of export command without parameters for default locale and all localization files. You can of course specify all parameters (**locale**, **group**, **input**) and there is few more options:
99
-
100
-
| name of parameter | description | is required? | default value |
| locale | The locale to be imported | NO | default lang of application |
103
-
| group | The name of translation file to import | NO | * - all files |
104
-
| output | Filename of translation files to be imported | NO | storage/app/lang-import-export.csv |
105
-
| -X / --excel | Set file encoding from Excel | NO | UTF-8 |
106
-
| -D / --delimiter | Field delimiter | NO | , |
107
-
| -E / --enclosure | Field enclosure | NO | " |
108
-
| -C / --escape | Field escape | NO |\|
109
-
110
82
Changelog
111
83
------------
112
84
85
+
6.0.0
86
+
* refactor whole repository
87
+
113
88
5.4.10
114
89
* Laravel 5.7 support
115
90
@@ -142,17 +117,10 @@ Changelog
142
117
- add support for export and import all localization files
143
118
- any arguments are not required
144
119
145
-
Roadmap
146
-
------------
147
-
148
-
* Removing tabs from text
149
-
* Option for deleting export file after importing.
150
-
* Option for excluding certain files (and system ones).
151
-
* Unit tests!
152
120
153
121
Credits
154
122
------------
155
123
156
124
This package was originally created by [UFirst](http://github.com/ufirstgroup) and is available here: [Laravel-lang-import-export](https://github.com/ufirstgroup/laravel-lang-import-export).
157
125
158
-
Currently is developed by [HighSolutions](https://highsolutions.org), software house from Poland in love in Laravel.
126
+
Currently is developed by [Aidas Klimas](https://klimas.lt/), software house from Lithuania
0 commit comments