Giter Site home page Giter Site logo

terminaltranslator's Introduction

TerminalTranslator

Terminal translator(TTL). A translator for terminal use.

Overview

The translate website is too slow and inconvenient to use when i'm coding, so build this tool.

Platform

  • Linux
  • Windows
  • MacOS

Languages support

  • en -> zh
  • zh -> en

Usage

  1. Clone Repository
git clone https://github.com/hencejacki/TerminalTranslator.git
cd TerminalTranslator
  1. Compile
mkdir build && cd build
# Default build type is debug.
# Add '-DCMAKE_BUILD_TYPE=Release' flag to switch release version.
# Default install path is /usr/local
# To change install path, add '-DCMAKE_INSTALL_PREFIX=/path/to/xxx' flag.
cmake ..
make && make install
# update path according to the prompt
# source ~/.bashrc
# or
# source ~/.config/fish/config.fish
  1. Use
# Set your endpoint env of translator server
echo "export TTL_ENDPOINT=http://translator-ip:translator-port(often 5000)" >> ~/.bashrc
# If use fish shell ,then
echo "set -X TTL_ENDPOINT http://translator-ip:translator-port(often 5000)" >> ~/.config/fish/config.fish
# Remeber perfroming "source ~/.bashrc or source ~/.config/fish/config.fish". 
# Thus, set your custom command use alias
# e.g. alias ttle='ttl -s en -t zh -f text -q'
ttl [-s|-t|-h|...] [word]
  1. Uninstall
make uninstall
# Remember editing and updating your shell rc file.

Future work

  • /translate_file
  • /detect
  • /languages
  • voice support

terminaltranslator's People

Contributors

hencejacki avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.