Skip to content
/ iow Public

In Other Words, command line translator written in Go, based on Google Translation API

License

Notifications You must be signed in to change notification settings

vicch/iow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

In Other Words

Command line translator written in Go, based on Google Translation API

iow [OPTION]... [TEXT]

[OPTION]
    -s LANG  Set source language
    -t LANG  Set target language
    -l       List supported languages
    -h       Help

[TEXT]
    Use "[]" to wrap word(s) to translate. Example: "Translate this [word]."

It will ask you to set up API key and default settings on first execution:

$ iow
Google API Key: [API key]
Default source language: [Language code]
Default target language: [Language code]

Note: It is recommended to leave source language empty and use Google Translate auto detection.

Translate single word:

$ iow -t en [翻译]
translation
$ iow -t ja [moon]
月

Translate sentence:

$ iow -s zh -t en "Fly me to the [月亮]. Let me [玩耍] among the stars."
Fly me to the moon. Let me play among the stars.

When source/target language is not specified, default settings are used:

$ iow "Let me see what [春天] is like on [木星] and [火星]."
Let me see what spring is like on Jupiter and Mars.

About

In Other Words, command line translator written in Go, based on Google Translation API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages