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
+51-16Lines changed: 51 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+

2
+
1
3
Laravel-Lang-Import-Export
2
4
==========================
3
5
@@ -69,32 +71,65 @@ The package currently provides two commands, one for exporting the files and one
69
71
70
72
```bash
71
73
php artisan lang:export
72
-
php artisan lang:export en *--output=export
73
-
php artisan lang:export en auth --A --X
74
+
php artisan lang:export en *path/to/export
75
+
php artisan lang:export en auth -A -X
74
76
```
75
77
76
-
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**).
78
+
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.
77
79
But there is few more useful parameters:
78
80
79
-
| name of parameter | description | is required? | default value |
You have to pass the __locale__, the __group__ and the __path to the CSV file__ as arguments. The group is the name of the langauge file without its extension. When you exported all files, write *. You may define options to match the CSV format of your input file.
99
+
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:
100
+
101
+
| name of parameter | description | is required? | default value |
| locale | The locale to be imported | NO | default lang of application |
104
+
| group | The name of translation file to import | NO | * - all files |
105
+
| output | Filename of translation files to be imported | NO | storage/app/lang-import-export.csv |
106
+
| -X / --excel | Set file encoding from Excel | NO | UTF-8 |
107
+
| -D / --delimiter | Field delimiter | NO | , |
108
+
| -E / --enclosure | Field enclosure | NO | " |
109
+
| -C / --escape | Field escape | NO |\|
110
+
111
+
Changelog
112
+
------------
113
+
5.4.1
114
+
- improved Excel support
115
+
- support of [LaravelLocalization](https://github.com/mcamara/laravel-localization) routes files
116
+
117
+
5.4.0
118
+
- refactor whole repository
119
+
- add support for Excel
120
+
- add support for export and import all localization files
121
+
- any arguments are not required
97
122
98
-
### Credits
123
+
Roadmap
124
+
------------
125
+
126
+
* Option for deleting export file after importing.
127
+
* Option for excluding certain files (and system ones).
128
+
* Unit tests!
129
+
130
+
Credits
131
+
------------
99
132
100
133
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).
134
+
135
+
Currently is developed by [HighSolutions](http://highsolutions.pl), software house from Poland in love in Laravel.
0 commit comments