Mozhi is an alternative-frontend for many translation engines.
Go to file
2023-08-30 16:05:16 +05:30
cmd add support for disablin engines 2023-08-30 16:05:16 +05:30
docs guess i have to add docs to the repo itself 2023-08-27 21:53:49 +05:30
pages add json option for transl. + gofmt 2023-08-29 14:50:56 +05:30
public add public 2023-06-25 12:27:59 +05:30
serve add json option for transl. + gofmt 2023-08-29 14:50:56 +05:30
utils add support for disablin engines 2023-08-30 16:05:16 +05:30
views SimplyTranslate -> Mozhi + Refactor README 2023-08-27 17:22:32 +05:30
.gitignore guess i have to add docs to the repo itself 2023-08-27 21:53:49 +05:30
compose.yml add docker and use route grouping for API routes 2023-08-27 20:21:53 +05:30
Dockerfile update dockerfile, ignore docs 2023-08-27 21:43:29 +05:30
go.mod fix ddg vqd fetching 2023-08-30 14:41:20 +05:30
go.sum fix ddg vqd fetching 2023-08-30 14:41: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 add support for disablin engines 2023-08-30 16:05:16 +05:30
TODO.md add support for disablin engines 2023-08-30 16:05:16 +05:30

Mozhi

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)

Building

go mod download
go run github.com/swaggo/swag/cmd/swag@latest init
go build -o mozhi

API Docs

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

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

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_USER_AGENT: Change user agent used to make HTTP requests
  • 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

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