Last active
May 11, 2020 15:02
-
-
Save AleksandraZuchewicz/87a041e71366c4c4dcbd42319a452661 to your computer and use it in GitHub Desktop.
Basic Google Cloud Translation API - List Languages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function listLanguages() { | |
const [languages] = await translate.getLanguages(); | |
console.log("Languages:"); | |
languages.forEach((language) => console.log(language)); | |
} | |
listLanguages(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment