feat: Add Google Translate API Integration (#6454)
This commit is contained in:
@@ -91,3 +91,40 @@ dyte:
|
||||
},
|
||||
]
|
||||
visible_properties: ["organization_id"]
|
||||
google_translate:
|
||||
id: google_translate
|
||||
logo: googletranslate.png
|
||||
i18n_key: google_translate
|
||||
action: /google_translate
|
||||
hook_type: account
|
||||
allow_multiple_hooks: false
|
||||
settings_json_schema: {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"project_id": { "type": "string" },
|
||||
"credentials": { "type": "object" },
|
||||
},
|
||||
"required": ["project_id", "credentials"],
|
||||
"additionalProperties": false,
|
||||
}
|
||||
settings_form_schema: [
|
||||
{
|
||||
"label": "Google Cloud Project ID",
|
||||
"type": "text",
|
||||
"name": "project_id",
|
||||
"validation": "required",
|
||||
"validationName": "Project Id",
|
||||
},
|
||||
{
|
||||
"label": "Google Cloud Project Key File",
|
||||
"type": "textarea",
|
||||
"name": "credentials",
|
||||
"validation": "required|JSON",
|
||||
"validationName": "Credentials",
|
||||
"validation-messages": {
|
||||
"JSON": "Invalid JSON",
|
||||
"required": "Credentials is required"
|
||||
},
|
||||
},
|
||||
]
|
||||
visible_properties: ['project_id']
|
||||
|
||||
Reference in New Issue
Block a user