Skip to content

Commit 9b988ee

Browse files
authored
Add Premium translation sample (#274)
1 parent 8cf19a6 commit 9b988ee

File tree

1 file changed

+9
-7
lines changed
  • packages/google-cloud-translate/samples

1 file changed

+9
-7
lines changed

packages/google-cloud-translate/samples/README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ __Usage:__ `node translate.js --help`
3333

3434
```
3535
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.
4242
4343
Options:
44-
--help Show help [boolean]
44+
--help Show help [boolean]
4545
4646
Examples:
4747
node translate.js detect "Hello world!" Detects the language of a string.
@@ -52,6 +52,8 @@ Examples:
5252
Spanish.
5353
node translate.js translate ru "Good morning!" Translates a string into Russian.
5454
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.
5557
5658
For more information, see https://cloud.google.com/translate/docs
5759
```

0 commit comments

Comments
 (0)