Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vinirossa/translate-file

A command line tool to translate files using Google Translate API.
https://github.com/vinirossa/translate-file

api cli google internationalization translate translator

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

Translate File

[![npm version](https://img.shields.io/npm/v/translate-file.svg?logo=npm&logoColor=fff&label=npm&color=b22323)](https://www.npmjs.com/package/translate-file)
[![npm downloads](https://img.shields.io/npm/dt/translate-file?color=success)](https://www.npmjs.com/package/translate-file)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/vinirossa/translate-file/blob/main/LICENSE)
[![GitHub Actions](https://github.com/vinirossa/translate-file/actions/workflows/ci.yml/badge.svg?name=push)](https://github.com/vinirossa/translate-file/actions/workflows/ci.yml)

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

Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Contributing](#contributing)
- [Contributors](#contributors)
- [License](#license)

## 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](https://github.com/vinirossa/translate-file/blob/main/CONTRIBUTING.md) before submitting a pull request to the project.

## Contributors

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



Vinícius Pereira

🚧 💻 🚇 📖 👀

## License

See the [LICENSE](https://github.com/vinirossa/translate-file/blob/main/LICENSE) file for licensing information.

MIT © [Vinícius Pereira](https://github.com/vinirossa)

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