Skip to content

Commit f6e27fe

Browse files
authored
Add support for verbose mode in text translation
1 parent 53d37dd commit f6e27fe

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/main/java/com/translated/lara/translator/TranslateOptions.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public enum UseCache {
2424
private UseCache useCache = null;
2525
private Integer cacheTTL = null;
2626
private Boolean noTrace = null;
27+
private Boolean verbose = null;
2728

2829
public String getSourceHint() {
2930
return sourceHint;
@@ -125,6 +126,15 @@ public TranslateOptions setNoTrace(boolean noTrace) {
125126
return this;
126127
}
127128

129+
public Boolean getVerbose() {
130+
return verbose;
131+
}
132+
133+
public TranslateOptions setVerbose(Boolean verbose) {
134+
this.verbose = verbose;
135+
return this;
136+
}
137+
128138
public HttpParams<Object> toParams() {
129139
HttpParams<Object> params = new HttpParams<>();
130140
params.set("source_hint", sourceHint);
@@ -136,6 +146,7 @@ public HttpParams<Object> toParams() {
136146
params.set("priority", toString(priority));
137147
params.set("use_cache", toString(useCache));
138148
params.set("cache_ttl", cacheTTL);
149+
params.set("verbose", verbose);
139150

140151
return params;
141152
}

0 commit comments

Comments
 (0)