v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-16 07:40:44 -07:00
2023-01-09 19:17:01 +00:00
2023-01-09 19:17:01 +00:00
2022-10-24 23:43:20 +08:00
2022-10-24 23:43:20 +08:00
2022-10-24 23:43:20 +08:00
2023-01-09 19:17:01 +00:00
2023-01-09 19:17:01 +00:00
2022-10-26 08:18:23 +08:00

GTT

Google Translate TUI

ScreenShot

screenshot

Install

go get && go build

Language in argument

You can pass -src and -dst in argument to set source and destination language.

gtt -src "English" -dst "Chinese (Traditional)"

See language on Google Language support

Key Map

<C-c> Exit program.

<Esc> Toggle pop out window.

<C-j> Translate from left window to right window.

<C-s> Swap language.

<C-q> Clear all text in left window.

<C-y> Copy selected text in left window.

<C-g> Copy all text in left window.

<C-r> Copy all text in right window.

<C-o> Play sound on left window.

<C-p> Play sound on right window.

<C-x> Stop play sound.

<C-t> Toggle transparent.

<Tab>, <S-Tab> Cycle through the pop out widget.

<1>, <2>, <3> Switch pop out window.

Dependencies

xclip For Linux to copy text.

pbcopy For macOS to copy text.

Credit

snsd0805/GoogleTranslate-TUI For inspiration.

turk/free-google-translate For Google translate in Golang.

Description
Google Translate TUI
Readme MIT 5.1 MiB
Languages
Go 99.1%
Shell 0.6%
Dockerfile 0.3%