1.0.0-alpha.1 • Published 3 years ago

translate-file v1.0.0-alpha.1

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

npm version npm downloads license GitHub Actions

A command line tool to translate files using Google Translate API.

Installation

npm install -D translate-file

Usage

How to use.

Examples

Translate CHANGELOG.md to Spanish as CHANGELOG.es.md.

translate-file -i CHANGELOG.md -t es

Translate README.md to Italian as README_it.md and overwrite file if existent.

translate-file -i ../README.md -t it -o README_it.md -ow

Translate RELEASE_NOTES.md to Portuguese as RELEASE_NOTES.pt.md to C:\Dev\my-package.

translate-file -i RELEASE_NOTES.md -t pt -d C:\Dev\my-package -a

Translate CONTRIBUTING.txt from Spanish to Dutch as CONTRIBUTING_nl.txt.

translate-file -i CONTRIBUTING.txt -s es -t nl -o CONTRIBUTING_nl.txt

Translate LICENSE to German as LICENSE.de overwriting existent file and auto detecting language.

translate-file -i LICENSE -t de -ow -a

Translate 'French Class Notes.md' to French.

translate-file -i "../../French Class Notes.txt" -t fr -ow

Contributing

Contributions of any kind are welcome! Please read our Contributing Guide before submitting a pull request to the project.

Contributors

Thanks goes to these wonderful people (emoji key):

License

See the LICENSE file for licensing information.

MIT © Vinícius Pereira

Do you like this repo? Give us a star⭐💛