File tree 2 files changed +19
-6
lines changed
2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ mvn clean compile assembly:single
31
31
```
32
32
33
33
We can then run the assembled JAR file with the ` java ` command. The variable
34
- $COMMAND takes two values ` detect' and ` translate'.
34
+ $COMMAND takes two values ` detect ` and `translate'.
35
35
36
36
```
37
37
MAIN_CLASS=com.google.cloud.translate.samples.TranslateText
38
38
JAR_FILE=target/translate-1.0-SNAPSHOT-jar-with-dependencies.jar
39
39
java -cp $JAR_FILE $MAIN_CLASS <detect|translate|langsupport> <text>
40
- <optional_source> <optional_target>
40
+ <optional_source> <optional_target>
41
41
```
42
42
43
43
Example Usage:
@@ -50,7 +50,7 @@ TARGET_LANG="fr"
50
50
51
51
Translate API Features:
52
52
53
- * Languages supported by the API
53
+ * List the languages supported by the API
54
54
```
55
55
java -cp $JAR_FILE $MAIN_CLASS langsupport
56
56
```
Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" ?>
2
- <project xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns =" http://maven.apache.org/POM/4.0.0"
3
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" >
1
+ <!--
2
+ Copyright 2016 Google Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <project >
4
17
<modelVersion >4.0.0</modelVersion >
5
18
<groupId >com.google.cloud.translate.samples</groupId >
6
19
<artifactId >translate</artifactId >
You can’t perform that action at this time.
0 commit comments