* 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)
| 145 | * @returns {boolean} |
| 146 | */ |
| 147 | function isSupported(desiredLang) { |
| 148 | return Boolean(getCode(desiredLang)); |
| 149 | } |
| 150 | |
| 151 | module.exports = langs; |
| 152 | module.exports.isSupported = isSupported; |
nothing calls this directly
no test coverage detected
searching dependent graphs…