跳转到内容

UI模块概述

UI模块允许应用扩展Crowdin用户界面、与外部服务创建集成等。

模块类型应用范围CrowdinCrowdin Enterprise
集成project-integrations项目
工具project-tools项目
报告project-reports项目
项目菜单project-menu项目
项目菜单(众包视图)project-menu-crowdsource项目 
编辑器右侧面板editor-right-panel项目
编辑器资源面板editor-asset-panel项目
编辑器译文面板editor-translations-panel项目
组织菜单organization-menu组织 
组织菜单(众包视图)organization-menu-crowdsource组织 
组织设置菜单organization-settings-menu组织 
个人资料设置菜单profile-settings-menu账户 
个人资料菜单profile-resources-menu账户 
自定义MTcustom-mt账户/组织
上下文菜单context-menu可配置
弹窗modal可配置
聊天chat账户/组织

要在应用中使用模块,请在 应用描述符 文件的 modules 下声明该模块,并包含所有必需属性。 您包含的属性控制模块的自定义选项。

manifest.json
{
"identifier": "application-identifier",
"name": "New Cool App",
"logo": "/app-logo.png",
"baseUrl": "https://app.example.com",
"authentication": {
"type": "none"
},
"scopes": [],
"modules": {
"{module_type}": [
{
"key": "your-module-key",
"name": "Module Name"
}
]
}
}
{module_type}

类型: string

必填:

描述: Crowdin 应用使用的模块类型。

key

类型: string

必填:

描述: Crowdin 应用内的模块标识符。

name

类型: string

必填:

描述: 模块的可读名称。

本页面对你有帮助吗?