Initial local translation API with persistent projects and batch jobs

This commit is contained in:
mrleo1nid committed 2026-10-23 13:31:13 +03:00
commit 13492929c6
21 files changed
+1624

No files matched your search

Executable
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
if [[ ! -x .venv/bin/python ]]; then
python3 -m venv .venv
fi
if [[ ! -f .venv/translator-installed ]]; then
.venv/bin/python -m pip install -e .
touch .venv/translator-installed
fi
if [[ ! -f config.toml ]]; then
cp config.example.toml config.toml
fi
exec .venv/bin/python -m local_translator --config "$PWD/config.toml"