Giter VIP home page Giter VIP logo

vscode-google-translate's Introduction

Vscode Google Translate

Licence VS Code Marketplace Rating

Quickly translate text right in your code 🚀

Demo

Patch plan (Edit by Tomachi)

  • Google App Script(GAS)を使用して変換するようにしたかった。
    • I wanted to use Google App Script (GAS) to convert it.
  • ユーザーの責任下でdoPostを受けてLanguageApp.translateを使って翻訳し、返却するのが妥当だと思った。
    • It seemed reasonable to take the doPost under the user's responsibility to translate and return it using LanguageApp.translate.
  • 2, 3時間いじったけどうまくいかなかった (初めてVisual Studio Codeのextensionをいじったからというのもある…)
    • Tinkered with it for a couple of hours, but it didn't work (partly because it was the first time I tinkered with extensions in Visual Studio Code...)
  • npm iするとコンフリクトエラーが出る。
    • npm i gives a conflict error.

Usage

Translate selected text

  1. Select some text to translate
  2. Press ALT+SHIFT+T
  3. Select the output languages you want and enjoy 👍

Translate a line under cursor

This feature inserts a newline under the current one with translation

  1. Set cursor/cursors on line(s) to translate
  2. Select menu 'Translate line(s) under the cursor'
  3. Select the output languages you want and enjoy

Preferred language settings

Want to quickly translate into a specific language? Run Command 'Set Preferred Language' or Set it in VSCode extension settings

Tooltip Hover Translation

By default when you hover over comments and code, you will get a translation into your preferred language hovering above the element. If you want to turn this off go into extension settings and un-check HoverTranslations then restart VSCode.

Proxy Support

You can use a proxy to translate text with the following settings:

"vscodeGoogleTranslate.host": "120.0.0.1"       // Proxy disabled if empty
"vscodeGoogleTranslate.port": "8080"            // Proxy port
"vscodeGoogleTranslate.username": "admin"       // Proxy auth disabled if empty
"vscodeGoogleTranslate.password": "password"    // Proxy password

Pull request

Pull request are welcome. Fork the project, clone it, install dependencies npm i and start coding :-).

If you want to make changes to the code hovering translations. Please run "npm run compile" from the root in order to compile the typescript part of the codebase.

Give five stars 🤩

If you like it, rate it

vscode-google-translate's People

Contributors

funkyremi avatar oshliaer avatar tyler36 avatar abduwaly avatar cabemo avatar book000 avatar dependabot[bot] avatar

Watchers

James Cloos 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.