@crowdin/app-project-module 0.58.0 → 0.58.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Environments, UiModule } from '../../types';
|
|
1
|
+
import { CrowdinContextInfo, Environments, UiModule } from '../../types';
|
|
2
2
|
import Crowdin, { SourceFilesModel, ProjectsGroupsModel, LanguagesModel, SourceStringsModel, StringTranslationsModel } from '@crowdin/crowdin-api-client';
|
|
3
3
|
export interface ExternalQaCheckModule extends Environments {
|
|
4
4
|
/**
|
|
@@ -13,7 +13,7 @@ export interface ExternalQaCheckModule extends Environments {
|
|
|
13
13
|
* jobs chunk size
|
|
14
14
|
*/
|
|
15
15
|
batchSize?: number;
|
|
16
|
-
validate: ({ client, file, project, sourceLanguage, strings, targetLanguage, translations, }: {
|
|
16
|
+
validate: ({ client, file, project, sourceLanguage, strings, targetLanguage, translations, context, }: {
|
|
17
17
|
client?: Crowdin;
|
|
18
18
|
file?: SourceFilesModel.File;
|
|
19
19
|
project?: ProjectsGroupsModel.Project;
|
|
@@ -21,6 +21,7 @@ export interface ExternalQaCheckModule extends Environments {
|
|
|
21
21
|
strings: SourceStringsModel.String[];
|
|
22
22
|
targetLanguage: LanguagesModel.Language;
|
|
23
23
|
translations: StringTranslationsModel.StringTranslation[];
|
|
24
|
+
context: CrowdinContextInfo;
|
|
24
25
|
}) => Promise<ExternalQaCheckResponse>;
|
|
25
26
|
/**
|
|
26
27
|
* Settings UI module
|
package/package.json
CHANGED