Skip to content

Commit e42eb27

Browse files
committed
Doc
1 parent c87c03d commit e42eb27

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,19 @@ php artisan laravelcms --action=clear
3131

3232
- It's enabled after install by default. You can see a Translator tab when you edit a page.
3333
- 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+
3547
- Note: Google translate API not support before 1.0 version.
3648

3749
## How to change the settings?

0 commit comments

Comments
 (0)