Skip to content

Commit 31f044b

Browse files
authored
Translate README.md issue fix
Fixing #1782
1 parent ad54a73 commit 31f044b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

google-cloud-translate/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ import com.google.cloud.translate.Detection;
113113
Then add the following code to detect the text's language:
114114

115115
```java
116+
Detection detection = translate.detect("Hello, World!");
116117
String detectedLanguage = detection.getLanguage();
117118
```
118119
#### Translating text

0 commit comments

Comments
 (0)