@crowdin/app-project-module 0.23.0 → 0.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/handlers/manifest.js +1 -0
- package/out/index.js +1 -0
- package/out/models/index.d.ts +2 -1
- package/out/models/index.js +1 -0
- package/package.json +1 -1
package/out/handlers/manifest.js
CHANGED
package/out/index.js
CHANGED
|
@@ -138,6 +138,7 @@ function addCrowdinEndpoints(app, config) {
|
|
|
138
138
|
app.get('/file/download', (0, download_1.default)(config, config.customFileFormat.filesFolder || config.dbFolder || '/'));
|
|
139
139
|
}
|
|
140
140
|
if (config.customMT) {
|
|
141
|
+
app.get('/logo/mt/logo.png', (req, res) => { var _a; return res.sendFile(((_a = config.customMT) === null || _a === void 0 ? void 0 : _a.imagePath) || config.imagePath || (0, path_1.join)(__dirname, 'logo.png')); });
|
|
141
142
|
app.post('/translate', (0, crowdin_client_1.default)(config), (0, translate_1.default)(config, config.customMT));
|
|
142
143
|
}
|
|
143
144
|
if (config.profileResourcesMenu) {
|
package/out/models/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export interface Config extends ImagePath {
|
|
|
75
75
|
/**
|
|
76
76
|
* custom MT module logic
|
|
77
77
|
*/
|
|
78
|
-
customMT?: CustomMTLogic;
|
|
78
|
+
customMT?: CustomMTLogic & ImagePath;
|
|
79
79
|
/**
|
|
80
80
|
* resources module
|
|
81
81
|
*/
|
|
@@ -139,6 +139,7 @@ export declare enum Scope {
|
|
|
139
139
|
TRANSLATION_MEMORIES = "tm",
|
|
140
140
|
MACHINE_TRANSLATION_ENGINES = "mt",
|
|
141
141
|
GLOSSARIES = "glossary",
|
|
142
|
+
GROUPS = "group",
|
|
142
143
|
PROJECTS = "project",
|
|
143
144
|
TASKS = "project.task",
|
|
144
145
|
REPORTS = "project.report",
|
package/out/models/index.js
CHANGED
|
@@ -13,6 +13,7 @@ var Scope;
|
|
|
13
13
|
Scope["TRANSLATION_MEMORIES"] = "tm";
|
|
14
14
|
Scope["MACHINE_TRANSLATION_ENGINES"] = "mt";
|
|
15
15
|
Scope["GLOSSARIES"] = "glossary";
|
|
16
|
+
Scope["GROUPS"] = "group";
|
|
16
17
|
Scope["PROJECTS"] = "project";
|
|
17
18
|
Scope["TASKS"] = "project.task";
|
|
18
19
|
Scope["REPORTS"] = "project.report";
|
package/package.json
CHANGED