1.1.3 • Published 3 years ago

one-translator v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

A simple and practical way to translate texts and file texts!

Usage

1. Require the one-translator

        const { translate, translateFile } = require('one-translator').default

Using it

        console.log(await translate(`from`, `to`, `text`)) 
           
        translate(`from`, `to`, `text`).then((data) => {
                console.log(data)
        })

Translate Files

	## Without saving
				console.log(await translateFile('en', 'pt-br', 'teste.txt'))
	## Saving
			console.log(await translateFile('en', 'pt-br', 'teste.txt', {
				save: true,
				savePath: './text2.txt'
			}))

save: boolean not required, default false savePath: string not required, default your path

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago