MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / listLanguagesWithTarget

Function listLanguagesWithTarget

translate/translate.js:79–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 // const target = 'The target language for language names, e.g. ru';
78
79 async function listLanguagesWithTarget() {
80 // Lists available translation language with their names in a target language
81 const [languages] = await translate.getLanguages(target);
82
83 console.log('Languages:');
84 languages.forEach(language => console.log(language));
85 }
86
87 listLanguagesWithTarget();
88 // [END translate_list_language_names]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected