aceberg/BookTr
1
0
Fork
You've already forked BookTr
0
Translate texts side-by-side using LibreTranslate API
  • TypeScript 62.6%
  • Go 24.9%
  • CSS 4.7%
  • Makefile 2.8%
  • HTML 2.2%
  • Other 2.8%
2025年03月02日 21:09:45 +07:00
.github Docker 2025年02月21日 14:38:28 +07:00
assets Screenshots 2025年02月24日 18:21:15 +07:00
backend README upd 2025年02月25日 22:32:33 +07:00
frontend Top Info block 2025年02月24日 17:26:15 +07:00
.gitignore Initial commit 2023年08月12日 03:07:38 +07:00
.version Screenshots 2025年02月24日 18:21:15 +07:00
CHANGELOG.md Release 0.1.4 2025年02月25日 01:25:06 +07:00
docker-compose.yml Add ghcr.io 2025年03月02日 21:09:45 +07:00
Dockerfile Release 0.1.1 2025年02月21日 23:04:00 +07:00
LICENSE Initial commit 2023年08月12日 03:07:38 +07:00
README.md Add ghcr.io 2025年03月02日 21:09:45 +07:00

BookTr

Main-Docker Binary-release Docker Image Size

This app translates text side-by-side, using LibreTranslate API. Features:

  • For reading long texts in foreign languages
  • Aligns paragraphs with their translations
  • Can Save translations in json format
  • Select word to see its translation, double click to translate every word in a sentence
  • Fully Self-Hosted, can work offline

Screenshot

More screenshots

Expand

Screenshot Screenshot Screenshot

Quick start (Docker)

Expand

First, run LibreTranslate container. It will take some time (~20 minutes) and resources (~1Gb memory, 10+Gb disk). When you see it's web interface at port 5000, move on to installing BookTr.

docker run --name ltr \
 -p 5000:5000 \
 libretranslate/libretranslate
docker run --name BookTr \
 -e "TZ=$YOURTIMEZONE" \  # your TZ here
 -e "LTRPATH=http://$YOURADDRESS:5000" \  # LibreTranslate URL
 -v ~/.dockerdata/BookTr:/data/BookTr \ 
 -p 8856:8856 \
 ghcr.io/aceberg/booktr # or aceberg/booktr

Or use docker-compose.yml

Install Binary

Expand

All binaries are available in the latest release.

Auth

Expand

BookTr does not have built-in auth option. But you can use it with SSO tools like Authelia, or my simple auth app ForAuth.

Config

Expand

App config

Variable Description Default
TZ Set your timezone for correct time
HOST Listen address 0.0.0.0
PORT Port for web GUI 8856
THEME Any theme name from https://bootswatch.com in lowcase or additional ocean
COLOR Background color: light or dark light
NODEPATH Path to local node modules

Connect to LibreTranslate

Variable Description Default
LANGFROM Translate from * fr
LANGTO Translate to * en
LTRPATH LibreTranslate URL
LTRKEY LibreTranslate API key (optional)

* All languages available in LibreTranslate: http://$LTRPATH/languages

Options

Expand
Key Description Default
-d Path to config dir /data/BookTr
-n Path to local node modules

Thanks

Expand