Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jekyll-translate

lexoyo16GPL1.0.2

Command line tool to translate a wole jekyll site with google translate

jekyll, cli, translation

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.

$ 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