We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0d99e commit f303da4Copy full SHA for f303da4
src/main/java/com/airsaid/localization/translate/impl/google/GoogleTranslationResult.java
@@ -85,8 +85,12 @@ public String toString() {
85
if (sentences == null || sentences.isEmpty()) {
86
return "";
87
}
88
- String trans = sentences.get(0).getTrans();
89
- return trans != null ? trans : "";
+ StringBuilder result = new StringBuilder();
+ for (Sentences sentence : sentences) {
90
+ String trans = sentence.getTrans();
91
+ if (trans != null) result.append(trans);
92
+ }
93
+ return result.toString();
94
95
96
public static class Sentences {
0 commit comments