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

Function listLanguages

translate/translate.js:54–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 const translate = new Translate();
53
54 async function listLanguages() {
55 // Lists available translation language with their names in English (the default).
56 const [languages] = await translate.getLanguages();
57
58 console.log('Languages:');
59 languages.forEach(language => console.log(language));
60 }
61
62 listLanguages();
63 // [END translate_list_codes]

Callers 1

listLanguagesSampleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected