Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crowdin/model/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ type ProjectsAddRequest struct {
UseGlobalTM *bool `json:"useGlobalTm,omitempty"`
// If true - show primary language TM suggestions for dialects if there are no dialect-specific ones. Default: true.
ShowTMSuggestionsDialects *bool `json:"showTmSuggestionsDialects,omitempty"`
// If true - only approved suggestions will be saved to the project default TM.
TmApprovedSuggestionsOnly *bool `json:"tmApprovedSuggestionsOnly,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Project model should also have this property because it is included in the response.

// Defines whether to skip untranslated strings.
SkipUntranslatedStrings *bool `json:"skipUntranslatedStrings,omitempty"`
// Defines whether to export only approved strings.
Expand Down
2 changes: 2 additions & 0 deletions crowdin/projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ func TestProjectsService_Add(t *testing.T) {
HiddenStringsProofreadersAccess: ToPtr(false),
UseGlobalTM: ToPtr(false),
ShowTMSuggestionsDialects: ToPtr(true),
TmApprovedSuggestionsOnly: ToPtr(false),
SkipUntranslatedStrings: ToPtr(false),
ExportApprovedOnly: ToPtr(false),
QACheckIsActive: ToPtr(false),
Expand Down Expand Up @@ -1105,6 +1106,7 @@ func TestProjectsService_Add(t *testing.T) {
"hiddenStringsProofreadersAccess": false,
"useGlobalTm": false,
"showTmSuggestionsDialects": true,
"tmApprovedSuggestionsOnly": false,
"skipUntranslatedStrings": false,
"exportApprovedOnly": false,
"qaCheckIsActive": false,
Expand Down
Loading