File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,19 @@ php artisan laravelcms --action=clear
31
31
32
32
- It's enabled after install by default. You can see a Translator tab when you edit a page.
33
33
- Go to the translator plugin setting page, change the api_provider to baidu or google.
34
- - Set up app_id and app_key from the baidu or google translate api page.
34
+ - Set up app_id and app_key from the baidu or google translate api page. eg.
35
+
36
+ ``` json
37
+ {
38
+ "blade_file" : " translator" ,
39
+ "tab_name" : " <i class='fas fa-language mr-1'></i>__(translator)" ,
40
+ "php_class" : " App\\ LaravelCms\\ Plugins\\ Translator\\ Controllers\\ TranslatorController" ,
41
+ "api_provider" : " baidu" ,
42
+ "app_id" : " 201911000357" ,
43
+ "app_key" : " cX6xUKysHBXaH"
44
+ }
45
+ ```
46
+
35
47
- Note: Google translate API not support before 1.0 version.
36
48
37
49
## How to change the settings?
You can’t perform that action at this time.
0 commit comments