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: 10 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 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T02:11:15.000Z (about 1 year ago)
- Last Synced: 2025-04-13T07:52:07.671Z (about 1 year ago)
- Topics: api, cli, google, internationalization, translate, translator
- Language: JavaScript
- Homepage:
- Size: 369 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
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
[](https://www.npmjs.com/package/translate-file)
[](https://www.npmjs.com/package/translate-file)
[](https://github.com/vinirossa/translate-file/blob/main/LICENSE)
[](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***⭐💛