explaingit

argosopentech/argos-translate

5,981PythonAudience · developerComplexity · 2/5Setup · easy

TLDR

An open-source translation library that runs entirely on your own computer with no internet required, you download language model packages and all translation processing happens locally from that point on.

Mindmap

mindmap
  root((Argos Translate))
    What it does
      Offline translation
      No remote servers
    Interfaces
      Python library
      Command line
      Desktop app
    Features
      Language packages
      Pivot translation
      LibreTranslate API
    Supported languages
      Arabic
      Chinese
      French
      Spanish
    Audience
      Developers
      Privacy users
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Add offline translation to a Python app without sending user text to an external service.

USE CASE 2

Translate documents from the command line without an internet connection.

USE CASE 3

Run a self-hosted translation HTTP API using LibreTranslate built on top of Argos Translate.

USE CASE 4

Translate between two languages without a direct model by routing through English as a bridge.

Tech stack

Python

Getting it running

Difficulty · easy Time to first run · 30min

Requires downloading separate language model packages for each translation pair you want to use before translating offline.

In plain English

Argos Translate is an open-source translation library that works entirely offline. Unlike translation services that send your text to a remote server, Argos Translate runs translation models directly on your own computer. You download language packages for the pairs you need, and all processing happens locally from that point on. It supports a wide range of languages including Arabic, Chinese, French, German, Japanese, Russian, Spanish, and dozens more. You can use it in three different ways: as a Python library you call from your own code, as a command-line tool for quick translations in a terminal, or through a graphical desktop interface. There is also LibreTranslate, a separate web application and API built on top of Argos Translate, which gives you a browser interface and an HTTP endpoint similar to commercial translation APIs. One practical feature is automatic pivot translation. If you have installed an English-to-French package and a Spanish-to-English package, Argos Translate can translate Spanish to French by routing through English as a middle step, even without a direct Spanish-to-French package. This expands the language combinations available without requiring a separate model for every possible pair, though the README notes that routing through an intermediate language does reduce translation quality somewhat. Installation is straightforward via pip, the standard Python package manager. Language packages are downloaded and installed separately through a package index that the library manages.

Copy-paste prompts

Prompt 1
Using argos-translate in Python, translate a batch of Spanish sentences to French with no internet connection.
Prompt 2
Show me how to install Argos Translate, download the Spanish-to-English language package, and run a translation from a Python script.
Prompt 3
How do I use Argos Translate pivot translation to translate Japanese text to German when no direct Japanese-to-German package is available?
Prompt 4
Set up LibreTranslate using Argos Translate so I have a self-hosted translation HTTP API running locally.
Prompt 5
Show me how to use the Argos Translate command-line tool to translate a text file from English to French.
Open on GitHub → Explain another repo

← argosopentech on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.