forked from vitalets/google-translate-api
-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathindex.cjs
17 lines (16 loc) · 760 Bytes
/
index.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict';
const translate = require('./lib/translation/translate.cjs');
const Translator = require('./lib/translation/Translator.cjs');
const singleTranslate = require('./lib/translation/singleTranslate.cjs');
const batchTranslate = require('./lib/translation/batchTranslate.cjs');
const { langs, isSupported, getCode } = require('./lib/languages.cjs');
const speak = require('./lib/speak.cjs');
module.exports = translate;
module.exports.translate = translate;
module.exports.Translator = Translator;
module.exports.singleTranslate = singleTranslate;
module.exports.batchTranslate = batchTranslate;
module.exports.languages = langs;
module.exports.isSupported = isSupported;
module.exports.getCode = getCode;
module.exports.speak = speak;