跳转到内容

文件处理模块概述

文件处理模块允许应用程序为新的自定义文件格式添加支持,并自定义对已支持文件格式的处理方式。

模块类型应用范围CrowdinCrowdin Enterprise
自定义文件格式custom-file-format账户/组织
文件导入前处理file-pre-import账户/组织
文件导入后处理file-post-import账户/组织
文件导出前处理file-pre-export账户/组织
文件导出后处理file-post-export账户/组织
翻译对齐处理file-translations-alignment账户/组织

要在应用中使用模块,请在 应用描述符 文件的 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

必填:

描述: 模块的可读名称。

本页面对你有帮助吗?