@@ -61,7 +61,7 @@ public static void translateText(String sourceText, PrintStream out) {
61
61
62
62
/**
63
63
* Translate the source text from source to target language.
64
- * Make sure that your project is whitelisted.
64
+ * Make sure that your project is whitelisted.
65
65
*
66
66
* @param sourceText source text to be translated
67
67
* @param sourceLang source language of the text
@@ -83,7 +83,8 @@ public static void translateTextWithOptionsAndModel(
83
83
84
84
Translation translation = translate .translate (sourceText , srcLang , tgtLang , model );
85
85
out .printf ("Source Text:\n \t Lang: %s, Text: %s\n " , sourceLang , sourceText );
86
- out .printf ("TranslatedText:\n \t Lang: %s, Text: %s\n " , targetLang , translation .getTranslatedText ());
86
+ out .printf ("TranslatedText:\n \t Lang: %s, Text: %s\n " , targetLang ,
87
+ translation .getTranslatedText ());
87
88
}
88
89
89
90
@@ -107,7 +108,8 @@ public static void translateTextWithOptions(
107
108
108
109
Translation translation = translate .translate (sourceText , srcLang , tgtLang );
109
110
out .printf ("Source Text:\n \t Lang: %s, Text: %s\n " , sourceLang , sourceText );
110
- out .printf ("TranslatedText:\n \t Lang: %s, Text: %s\n " , targetLang , translation .translatedText ());
111
+ out .printf ("TranslatedText:\n \t Lang: %s, Text: %s\n " , targetLang ,
112
+ translation .translatedText ());
111
113
}
112
114
113
115
/**
0 commit comments