
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
google-cloud-translation-languages
Advanced tools
Maps supported languages by Google Cloud Translation
Maps the languages currently supported by operations of the Google Cloud Translation API. The data auto-updates every 3 days, if needed.
const { isLanguageSupported } = require("google-cloud-translation-languages");
console.log(isLanguageSupported("en"));
// true
The raw sets of supported languages, as returned by Google Cloud Translation API, are made accessible:
const { languages } = require("google-cloud-translation-languages");
console.log(languages);
// [{language: 'hu', name: 'Hungarian'}, {…}, {…}, …]
// OR
const gct = require("google-cloud-translation-languages");
console.log(gct.dataLanguages);
// [{language: 'hu', name: 'Hungarian'}, {…}, {…}, …]
isLanguageSupported(code) returns whether a language is supported or not:
code must be a BCP 47 language tag, as per ISO 3166-1const { isLanguageSupported } = require("google-cloud-translation-languages");
console.log(isLanguageSupported("en"));
// true
console.log(isLanguageSupported("hu"));
// true
google-cloud-translation-languages is released under the MIT License. See the bundled LICENSE file for details.
FAQs
Maps supported languages by Google Cloud Translation
We found that google-cloud-translation-languages demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.

Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.