File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -83,3 +83,21 @@ the textbox loses it's focus, the translation will be saved.
83
83
### Turn it off
84
84
If you don't want any additional routes forced into your application, you can disable the whole web interface by
85
85
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!
You can’t perform that action at this time.
0 commit comments