https://github.com/lexoyo/jekyll-translate
Command line tool to translate a wole jekyll site with google translate
https://github.com/lexoyo/jekyll-translate
Last synced: 6 months ago
JSON representation
Command line tool to translate a wole jekyll site with google translate
- Host: GitHub
- URL: https://github.com/lexoyo/jekyll-translate
- Owner: lexoyo
- Created: 2019-08-29T21:55:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T00:27:54.000Z (almost 3 years ago)
- Last Synced: 2025-02-14T01:18:23.583Z (8 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Command line tool to translate a wole jekyll site with google translate. This will translate posts or pages, including title meta data and file name.
```sh
$ npm install -g jekyll-translate
$ jekyll-translate _posts/ _fr/ en fr $GOOGLE_TRANSLATE_API_KEY
```
params:* source folder (_posts/ in the example) with the files in the source language
* destination folder (_fr/ in the examples, need to exist) will contain the translated files
* source language code ('en')
* destination language code ('fr')
* Google translate API key