UNPKG

bhashantarh

Version:

Tiny translation wrapper with fallbacks (LibreTranslate -> MyMemory) and detection with franc fallback.

10 lines (8 loc) 251 B
const detectLanguage = require('./lib/detectLanguage'); const translate = require('./lib/translateText'); const getSupportedLanguages = require('./lib/supportedLanguages'); module.exports = { detectLanguage, translate, getSupportedLanguages };