Skip to content

Commit

Permalink
feat: string upload updateOption (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ authored Sep 21, 2024
1 parent ae196ef commit 1e51a97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sourceStrings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export namespace SourceStringsModel {
};
updateStrings: boolean;
cleanupMode: boolean;
updateOption: UpdateOption;
}

export interface UploadStringsRequest {
Expand All @@ -225,6 +226,7 @@ export namespace SourceStringsModel {
importTranslations: boolean;
scheme: SourceFilesModel.Scheme;
};
updateOption?: UpdateOption;
}

export interface ListProjectStringsOptions extends PaginationOptions {
Expand Down Expand Up @@ -298,4 +300,8 @@ export namespace SourceStringsModel {
}

export type Scope = 'identifier' | 'text' | 'context';
export type UpdateOption =
| 'clear_translations_and_approvals'
| 'keep_translations'
| 'keep_translations_and_approvals';
}

0 comments on commit 1e51a97

Please sign in to comment.