mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
argos-translate: add page (#14898)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
4df55c67ed
commit
af7c37a4bf
1 changed files with 32 additions and 0 deletions
32
pages/common/argos-translate.md
Normal file
32
pages/common/argos-translate.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# argos-translate
|
||||
|
||||
> An open-source offline translation library and CLI tool written in Python.
|
||||
> More information: <https://www.argosopentech.com/>.
|
||||
|
||||
- Install translation pairs for Spanish to English translation:
|
||||
|
||||
`argospm install translate-es_en`
|
||||
|
||||
- Translate some text from Spanish (`es`) to English (`en`) (Note: only two letter language codes are supported):
|
||||
|
||||
`argos-translate --from-lang es --to-lang en {{un texto corto}}`
|
||||
|
||||
- Translate a text file from English to Hindi:
|
||||
|
||||
`cat {{path/to/file.txt}} | argos-translate --from-lang en --to-lang hi`
|
||||
|
||||
- List all installed translation pairs:
|
||||
|
||||
`argospm list`
|
||||
|
||||
- Show translation pairs from English that are available to be installed:
|
||||
|
||||
`argospm search --from-lang en`
|
||||
|
||||
- Update installed language package pairs:
|
||||
|
||||
`argospm update`
|
||||
|
||||
- Translate from `ar` to `ru` (Note: this requires the translation pairs `translate-ar_en` and `translate-en_ru` to be installed):
|
||||
|
||||
`argos-translate --from-lang ar --to-lang ru {{صورة تساوي أكثر من ألف كلمة}}`
|
Loading…
Add table
Reference in a new issue