Mozhi is an alternative-frontend for many translation engines.
Go to file
Arya Kiran e8ec90044a
Some checks failed
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Failing after 7s
mozhi pipeline / Build and publish artifacts (push) Has been cancelled
seems like v4 isnt supported by act_runner
2023-09-21 22:01:45 +05:30
.gitea/workflows seems like v4 isnt supported by act_runner 2023-09-21 22:01:45 +05:30
cmd make disabling engines work correctly with webui and show right capitalization in webui 2023-09-11 07:45:52 +05:30
docs put api before the static handling (https://github.com/gofiber/swagger/issues/33) 2023-09-11 09:15:41 +05:30
pages go get -u; add all engines support 2023-09-20 16:04:20 +05:30
public fix textarea size 2023-09-21 15:37:09 +05:30
serve put api before the static handling (https://github.com/gofiber/swagger/issues/33) 2023-09-11 09:15:41 +05:30
utils update deps, make engine code into a lib 2023-09-09 20:03:14 +05:30
views go get -u; add all engines support 2023-09-20 16:04:20 +05:30
.gitignore guess i have to add docs to the repo itself 2023-08-27 21:53:49 +05:30
compose.yml update compose with the registry image 2023-09-02 11:32:49 +05:30
Dockerfile add arm64 support hopefully (closes #2) 2023-09-21 21:53:49 +05:30
go.mod go get -u; add all engines support 2023-09-20 16:04:20 +05:30
go.sum go get -u; add all engines support 2023-09-20 16:04:20 +05:30
LICENSE init 2023-06-25 00:10:57 +05:30
main.go SimplyTranslate -> Mozhi + Refactor README 2023-08-27 17:22:32 +05:30
README.md udpate credits 2023-09-21 15:53:28 +05:30
TODO.md udpate credits 2023-09-21 15:53:28 +05:30

Mozhi logo

Mozhi

License: AGPLv3 Matrix

Mozhi (spelt moḻi) is an alternative-frontend for many translation engines.

It was initially made as a maintained fork/rewrite of simplytranslate, but has grown to have a lot more features as well!

I'm initially focusing on the api and engines, but eventually Mozhi will have a functioning CLI and webapp.

Supported Engines:

  • Google
  • Reverso
  • DeepL
  • LibreTranslate
  • Yandex
  • IBM Watson
  • MyMemory
  • DuckDuckGo (almost 1-1 with Bing Translate)

Where is the engine code?

The engine code has recently been split from the main codebase. Please check aryak/libmozhi for it.

Installing

You can either use docker or the build artifacts from CI jobs on git.projectsegfau.lt.

Building

GOPRIVATE=codeberg.org/aryak/libmozhi # Get latest commit since proxy server is a bit slow
go mod download
go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
go build -o mozhi

API Docs

Mozhi makes use of swagger (using the fiber middleware) to manage the documentation of the API.

You can find it in /api/swagger of any instance (example).

Configuration

Features of Mozhi can be customized and toggled on/off using Environment Variables.

  • MOZHI_PORT: Port the webserver listens on (if hosting API)
  • MOZHI_LIBRETRANSLATE_URL: URL of Libretranslate instance (Example: MOZHI_LIBRETRANSLATE_URL=https://lt.psf.lt)

These envvars turn off/on engines. By default all of them are enabled.

  • MOZHI_GOOGLE_ENABLED
  • MOZHI_REVERSO_ENABLED
  • MOZHI_DEEPL_ENABLED
  • MOZHI_LIBRETRANSLATE_ENABLED
  • MOZHI_YANDEX_ENABLED
  • MOZHI_WATSON_ENABLED
  • MOZHI_MYMEMORY_ENABLED
  • MOZHI_DUCKDUCKGO_ENABLED

Instances

Link Cloudflare Country ISP
mozhi.aryak.me No India Airtel

Features

  • An all mode where the responses of all supported engines will be shown.
  • Autodetect which will show the language that was detected
  • Text-To-Speech for multiple engines
  • A good API (subjective :P)
  • All the stuff you expect from a translation utility :)

Etymology

Mozhi is the word in Tamil for language. Simple as that :P

Credits

  • Arya: creator
  • Midou36o: made the logo
  • py_: Design files
  • Missuo: creating gDeepLX that does the hard part of making DeepL work
  • translatepy: giving me the format of request for yandex engine
  • SimplyTranslate: Inspiration and base code for the webui
  • Rimgo: Code for embedding html in binary