Skip to content

Commit 5f9e9f9

Browse files
committed
Update readme.md
1 parent abae125 commit 5f9e9f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

readme.md

+18
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,21 @@ the textbox loses it's focus, the translation will be saved.
8383
### Turn it off
8484
If you don't want any additional routes forced into your application, you can disable the whole web interface by
8585
changing the ```translation-db.webinterface``` config from ```TRUE``` to ```FALSE```.
86+
87+
## Importing and exporting
88+
To ease the proces of migrating to translations in the database, two commands are available since version 0.3.
89+
### Import
90+
To import all translations out of your current language files, you can use the command:
91+
```
92+
php artisan translation:fetch
93+
```
94+
This will import all available translations in language files into the database.
95+
> To import just some specifics you can also make use of the options ```--locale``` and ```--group```.
96+
97+
### Export
98+
To dump the translations from your database back to your filesystem, use:
99+
```
100+
php artisan translation:dump
101+
```
102+
> The options ```--locale``` and ```--group``` are also available for this command.
103+
> **Caution**: all current files will be **overwritten**, so use with care!

0 commit comments

Comments
 (0)