File tree 1 file changed +9
-7
lines changed
packages/google-cloud-translate/samples
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ __Usage:__ `node translate.js --help`
33
33
34
34
```
35
35
Commands:
36
- detect <input..> Detects the language of one or more strings.
37
- list [target] Lists available translation languages. To return
38
- language names in a language other thanEnglish,
39
- specify a target language.
40
- translate <toLang> <input..> Translates one or more strings into the target
41
- language .
36
+ detect <input..> Detects the language of one or more strings.
37
+ list [target] Lists available translation languages. To return language names in a
38
+ language other than English, specify a target language.
39
+ translate <toLang> <input..> Translates one or more strings into the target language.
40
+ translate-with-model <toLang> <model> < input..> Translates one or more strings into the target language using the
41
+ specified model .
42
42
43
43
Options:
44
- --help Show help [boolean]
44
+ --help Show help [boolean]
45
45
46
46
Examples:
47
47
node translate.js detect "Hello world!" Detects the language of a string.
@@ -52,6 +52,8 @@ Examples:
52
52
Spanish.
53
53
node translate.js translate ru "Good morning!" Translates a string into Russian.
54
54
node translate.js translate ru "Good morning!" "Good night!" Translates multiple strings into Russian.
55
+ node translate.js translate-with-model ru nmt "Good Translates multiple strings into Russian using the
56
+ morning!" "Good night!" Premium model.
55
57
56
58
For more information, see https://cloud.google.com/translate/docs
57
59
```
You can’t perform that action at this time.
0 commit comments