translate-file

1.0.0-alpha.1 • Public • Published

Translate File

npm version npm downloads license GitHub Actions

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

Table of Contents

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):


Vinícius Pereira

🚧 💻 🚇 📖 👀

License

See the LICENSE file for licensing information.

MIT © Vinícius Pereira

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

Package Sidebar

Install

npm i translate-file

Weekly Downloads

1

Version

1.0.0-alpha.1

License

MIT

Unpacked Size

33.1 kB

Total Files

39

Last publish

Collaborators

  • vinirossa