Skip to content

lingva-translate

Self-hosted privacy front-end for Google Translate with over a hundred languages

Copyleft (OSI) · AGPL-3.0

Listed by , founder & editor

18

Health

Dormant

Overview

Stars

1,852

Last commit

4 years ago

Jan 2023

Repository age

5 years

since Mar 2021

Latest version

–

Contributors

–

Releases

0

last 12 months

Docker pulls

307k

thedaviddelta/lingva-translate

Language

TypeScript

Lingva Translate is an alternative front-end for Google Translate. It scrapes Google Translate and returns the result without your browser contacting Google services directly, which prevents Google from tracking you. It follows the same idea as Nitter and Invidious.

It is built with TypeScript, React and Next.js, uses ChakraUI for styling, and serves a GraphQL endpoint through Apollo Server. Scraping is handled by Lingva Scraper, a library written for the project. You can deploy it anywhere Next.js runs, including Vercel, or use the official Docker image with Compose or Kubernetes.

Configuration is by environment variable. You must set the site domain, and you can optionally force a light or dark theme and set default source and target languages. It is licensed AGPL-3.0.

The last commit was in January 2023, so expect little active development. It replaces the Google Translate web interface for people who want a private mirror.

Who it's for

Privacy-minded individuals

Translations come through your own instance, so Google does not see your browser.

Skip if: You need a maintained project that tracks changes in Google's site.

Self-hosters running a private service stack

A single Docker container on port 3000 is simple to run beside other services.

Skip if: You want translation done by a local model with no upstream service at all.

The problem it solves

Using Google Translate means sending your text and browser details to Google. Lingva puts a front-end between you and it, so you can translate without visiting Google directly.

Strengths

  • Official Docker image with Compose and Kubernetes support
  • Over a hundred languages available
  • Deploys on any Next.js host, including Vercel
  • Default theme and languages are set by environment variables
  • GraphQL endpoint available for other apps

Trade-offs

  • No commits since January 2023, so scraper breakage may go unfixed
  • Depends on scraping Google Translate, not an independent engine
  • AGPL-3.0 requires sharing source of modified public deployments

Self-host lingva-translate

Self-hostable
Yes
Docker image
thedaviddelta/lingva-translate

Quick start

docker run -p 3000:3000 -e site_domain=lingva.ml -e force_default_theme=light -e default_source_lang=auto -e default_target_lang=en thedaviddelta/lingva-translate:latest

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free?

Yes. It is open source under AGPL-3.0, and you can deploy it for free on Vercel or on your own server.

Can I self-host it?

Yes. Use the official Docker image or deploy the Next.js project anywhere Next is supported.

Does it translate offline?

No. It scrapes Google Translate for results.

Is it still maintained?

Activity has stopped; the last commit was in January 2023.

Similar tools in Translation tools

RTranslator

Translation tools

Offline Android app for live voice translation between phones, with Bluetooth headset

11k 969 29 days ago Slowing Apache-2.0

koharu

Translation tools

Local manga translator that detects text, runs OCR, inpaints and exports PSD or CBZ

6.8k 515 today Thriving Apache-2.0

PyGlossary

Translation tools

Converter for offline dictionary files between StarDict, Kobo, Mobi and other formats

2.7k 262 4 days ago Active GPL-3.0

GoldenDict-ng

Translation tools

Desktop dictionary lookup program for readers who use many dictionary formats

3.2k 182 yesterday Active GPL-3.0-or-later

Linguist

Translation tools

Browser extension for private, offline page and text translation in Chrome and Firefox

1.1k 51 3 months ago Slowing BSD-3-Clause

Replaces Bing Translator

Translate You

Translation tools

Android translator app with 9 engines, image translation and offline-friendly self-hosted

1.6k 83 14 days ago Active GPL-3.0