Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghashtag/translate-json-with-yandex
https://github.com/ghashtag/translate-json-with-yandex
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ghashtag/translate-json-with-yandex
- Owner: gHashTag
- Created: 2022-11-19T14:53:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-19T15:16:36.000Z (about 2 years ago)
- Last Synced: 2023-03-05T16:14:13.148Z (almost 2 years ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How use it?
In order to perform the translation, you need to do a few simple steps:
- First of all, install the dependencies:
```
yarn
```or
```
npm install
```- To make a translation, you need to get a Yandex API key. This can be done [here](https://console.cloud.yandex.ru/), according to [this guide](https://cloud.yandex.ru/docs/translate/operations/translate)
- In the input folder, you need to place files of the `json` format that you need to translate, then change the paths `pathsToJSON` and `namesOutputJSON` according to the name
- Finally you can translate your files:
```
node translate fr,et,nl
```