The module allows creating the item in the context menu where possible.
Crowdin context menus:
Crowdin Enterprise context menus:
A context menu item can open a specified app module with additional context related to the selected record or custom URL. There are the following types of actions:
You can grant access to this module to one of the following user categories:
For Crowdin:
For Crowdin Enterprise:
Context menu item shows the specified module in the modal.
{
"identifier": "application-identifier",
"name": "New Cool App",
"logo": "/app-logo.png",
"baseUrl": "https://app.example.com",
"authentication": {
"type": "none"
},
"scopes": [],
"modules": {
"modal": [
{
"key": "integration-module-key",
"name": "New Integration",
"url": "/path/to/integration/module"
}
],
"context-menu": [
{
"key": "context-menu-key",
"name": "Name of Context Menu Item",
"description": "Description of Context Menu Item",
"options": {
"location": "source_file",
"type": "modal",
"module": {
"modal": "integration-module-key"
}
}
}
]
}
}
Context menu item redirects to the specified module.
{
"identifier": "application-identifier",
"name": "New Cool App",
"logo": "/app-logo.png",
"baseUrl": "https://app.example.com",
"authentication": {
"type": "none"
},
"scopes": [],
"modules": {
"project-integrations": [
{
"key": "integration-module-key",
"name": "New Integration",
"logo": "/integration-logo.png",
"url": "/path/to/integration/module"
}
],
"context-menu": [
{
"key": "context-menu-key",
"name": "Name of Context Menu Item",
"description": "Description of Context Menu Item",
"options": {
"location": "source_file",
"type": "redirect",
"module": {
"project-integrations": "integration-module-key"
}
}
}
]
}
}
Context menu item opens a new tab with the URL: baseUrl/options.url
.
{
"identifier": "application-identifier",
"name": "New Cool App",
"logo": "/app-logo.png",
"baseUrl": "https://app.example.com",
"authentication": {
"type": "none"
},
"scopes": [],
"modules": {
"context-menu": [
{
"key": "context-menu-key",
"name": "Name of Context Menu Item",
"description": "Description of Context Menu Item",
"options": {
"location": "source_file",
"type": "new_tab",
"url": "/example/path"
}
}
]
}
}
key | Type: Required: yes Description: Module identifier within the Crowdin app. |
name | Type: Required: yes Description: The human-readable name of the module. Uses as Context menu text |
description | Type: Description: A human-readable description of what the module does. |
options.location | Type: Required: yes Allowed values: Description: The location in UI where the context menu can be added. |
options.type | Type: Required: yes Allowed values: Description: The type of action this module will perform. |
options.url | Type: Use it only with Description: Relative URL. |
environments | Type: Allowed values: Description: Set of environments where a module could be installed. |