Translates text between languages locally using installable neural translation models.

Description

Argos Translate is a Python machine translation library that can be used directly in an application or from the command line. It takes text and a language pair and returns the translated text. Each translation direction requires a .argosmodel package. If no direct model is installed, the library can use an intermediate language when suitable packages are available, for instance translating Spanish into French via English. A developer could embed the library in a local note-processing tool and translate material without sending the original text to a cloud service. The code is available free of charge under MIT or CC0. Models and necessary resources must be downloaded before offline use; translation via an intermediate language can reduce quality. LibreTranslate uses this library but is a separate product.