Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/vinirossa/translate-file
- Owner: vinirossa
- License: mit
- Created: 2021-10-25T14:01:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-08T02:46:29.000Z (6 months ago)
- Last Synced: 2024-08-08T17:29:41.403Z (6 months ago)
- Topics: api, cli, google, internationalization, translate, translator
- Language: JavaScript
- Homepage:
- Size: 595 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
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)):
## 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***⭐💛