Giter Site home page Giter Site logo

translate-desktop-app's Introduction

Hướng dẫn cài đặt

Clone project và cài đặt node package

npm install

Tìm đến file node_modules/google-translate-api/index.js, di chuyển đến dòng 35, sửa lại

client: 't',

thành

client: 'gtx',

Cài đặt thêm package trên linux:

sudo apt install wmctrl
sudo apt install zenity
sudo apt install xclip

Sau đó, bạn cần cấp quyền thực thi cho file translate.sh:

chmod +x translate.sh

Bây giờ, phần thiết lập code đã xong. Bạn cần thiết lập phím tắt để gọi đến file code translate.sh nữa.

Ví dụ, với mình dùng ubuntu 18.04 thì phần thiết lập phím tắt cho command nằm ở phần Setting > Devices > Keyboard. Sau đó bấm vào dấu + phía dưới, lần lượt hoàn thành name, command (chính là đường dẫn đến file translate.sh) và shortkey

Hotkey config

OK. Vậy là bạn đã hoàn thành xong việc cài đăt rồi. Bây giờ để dịch 1 đoạn văn bản bất kì, bạn chỉ cần chọn đoạn văn bản đó và nhấn hotkey vừa cài đặt (VD với mình như trên là Ctrl+Menu)

translate-desktop-app's People

Contributors

dangvu5998 avatar

Stargazers

minhtruong61 avatar Trương Hoàng Duy avatar

Watchers

James Cloos avatar  avatar  avatar Trương Hoàng Duy 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.