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:
Dette modul er tilgængeligt for alle godkendte brugere.
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": {
"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": "modal",
"module": {
"project-integrations": "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"
}
}
]
}
}
nøgle | Type: Required: yes Beskrivelse: Modul-identifikator i Crowdin-appen. |
navn | Type: Required: yes Beskrivelse: Modulnavn i simpel tekst. Bruger som kontekstmenutekst |
description | Type: Beskrivelse: Klartekstbeskrivelsen af, hvad modulet gør. |
options.location | Type: Required: yes Gyldige værdier: Beskrivelse: Placeringen i UI'en, hvor kontekstmenuen kan tilføjes. |
options.type | Type: Required: yes Gyldige værdier: Beskrivelse: Handlingstype udført af dette modul. |
options.url | Type: Use it only with Description: Relative URL. |
environments | Type: Allowed values: Description: Set of environments where a module could be installed. |