lingarr-translate / lingarr

Lingarr is an application that utilizes LibreTranslate to translate subtitle files to a user-specified target language, providing a locally hosted solution for subtitle localization.
63 stars 0 forks source link

How to use from command #11

Closed eduardopventura closed 1 month ago

eduardopventura commented 1 month ago

Is there a way to run the translation by command line without the ui? if has, whats the parameters and command?

rowanfuchs commented 1 month ago

Absolutely, you see the route /translate here: https://github.com/lingarr-translate/lingarr/blob/main/lingarr_api/src/routes/api.routes.ts and the needed format is in the controller: https://github.com/lingarr-translate/lingarr/blob/main/lingarr_api/src/services/translate.service.ts