MCPcopy
hub / github.com/matheuss/google-translate-api / isSupported

Function isSupported

languages.js:147–149  ·  view source on GitHub ↗

* Returns true if the desiredLang is supported by Google Translate and false otherwise * @param desiredLang – the ISO 639-1 code or the name of the desired language * @returns {boolean}

(desiredLang)

Source from the content-addressed store, hash-verified

145 * @returns {boolean}
146 */
147function isSupported(desiredLang) {
148 return Boolean(getCode(desiredLang));
149}
150
151module.exports = langs;
152module.exports.isSupported = isSupported;

Callers

nothing calls this directly

Calls 1

getCodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…