llxff / chpunk

Translate a book with Yandex and Deepl like a pro πŸ‘©β€πŸ­

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chpunk

Helps with books translation. The project works with DeepL and Yandex Translate.

Yandex Translate

The project uses public version of Yandex Translate, for some reasons it makes better translation than official API.

Usage

$ go run cmd/chpunk/main.go
Usage:
  translate [command]

Available Commands:
  doc         Translates a given Google Spreadsheet and past translation to a given Google Doc
  file        Translates a given file
  help        Help about any command
  server      Starts server
  sheet       Translates a given Google Spreadsheet

Flags:
  -h, --help   help for translate

Use "translate [command] --help" for more information about a command.

Setup:

  1. Enable Google Docs API https://developers.google.com/docs/api/quickstart/go and put credentials file to configs/google.json
  2. Set your api key for Deepl in configs/translators.json

Frontend:

Frontend uses Vue.js and yarn.

To start just frontend:

$ make frontend

To start frontend with API:

$ make

This is a pet-project

I wrote it to help my wife πŸ‘©β€πŸ’» with her work, don't expect much from it.

About

Translate a book with Yandex and Deepl like a pro πŸ‘©β€πŸ­


Languages

Language:Go 64.2%Language:Vue 19.5%Language:JavaScript 11.6%Language:HTML 4.2%Language:Makefile 0.6%