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 769a28f commit 64e101eCopy full SHA for 64e101e
translate/snippets/src/main/java/com/example/translate/QuickstartSample.java
@@ -32,11 +32,12 @@ public static void main(String... args) throws Exception {
32
String text = "Hello, world!";
33
34
// Translates some text into Russian
35
- Translation translation = translate.translate(
36
- text,
37
- TranslateOption.sourceLanguage("en"),
38
- TranslateOption.targetLanguage("ru")
39
- );
+ Translation translation =
+ translate.translate(
+ text,
+ TranslateOption.sourceLanguage("en"),
+ TranslateOption.targetLanguage("ru"));
40
+
41
42
System.out.printf("Text: %s%n", text);
43
System.out.printf("Translation: %s%n", translation.translatedText());
0 commit comments