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']
|
||||
|
||||
@@ -171,6 +171,9 @@ en:
|
||||
fullcontact:
|
||||
name: "Fullcontact"
|
||||
description: "FullContact integration helps to enrich visitor profiles. Identify the users as soon as they share their email address and offer them tailored customer service. Connect your FullContact to your account by sharing the FullContact API Key."
|
||||
google_translate:
|
||||
name: "Google Translate"
|
||||
description: "Make it easier for agents to translate messages by adding a Google Translate Integration. Google translate helps to identify the language automatically and convert it to the language chosen by the agent/account admin."
|
||||
public_portal:
|
||||
search:
|
||||
search_placeholder: Search for article by title or body...
|
||||
|
||||
@@ -74,7 +74,11 @@ Rails.application.routes.draw do
|
||||
post :filter
|
||||
end
|
||||
scope module: :conversations do
|
||||
resources :messages, only: [:index, :create, :destroy]
|
||||
resources :messages, only: [:index, :create, :destroy] do
|
||||
member do
|
||||
post :translate
|
||||
end
|
||||
end
|
||||
resources :assignments, only: [:create]
|
||||
resources :labels, only: [:create, :index]
|
||||
resource :participants, only: [:show, :create, :update, :destroy]
|
||||
|
||||
Reference in New Issue
Block a user