ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Google Dictionary

by houcheng ST3

Sublime google dictionary plugin

Details

Installs

  • Total 5K
  • Win 3K
  • OS X 1K
  • Linux 1K
Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10
Windows 0 3 5 0 7 6 6 5 6 0 2 3 4 4 6 8 2 3 2 7 4 2 3 4 1 2 2 5 3 7 1 3 3 2 2 2 4 6 6 3 3 6 2 5 2 1
OS X 0 2 0 0 0 2 1 3 0 1 1 3 3 1 0 1 1 0 0 2 1 2 1 1 0 1 0 1 3 0 0 1 1 1 3 0 1 2 0 1 3 0 0 0 1 2
Linux 0 1 1 0 1 1 3 2 1 1 1 1 2 2 2 0 1 0 2 0 2 1 0 3 1 1 0 0 3 3 0 0 0 2 1 4 2 2 3 1 3 1 0 1 1 0

Readme

Source
raw.​githubusercontent.​com

Sublime Google Dictionary plugin

Demo

Introduction

With google dictionary plugin, user can translate selected text into his lanauge by Google's translation service. First, user select the word or phrase needed to translte. Then, he press the google dictionary hot key and the translated text will be shown.

This plug-in also provides translate mode, when enter this mode by hot key every time when user select a phrase or word, the selected text would be translated.

Add vocabulary feature that auto record new word into vocabulary.txt, you may find this file under menu “preference/package settings/google dictionay” By default, this feature is off.

Installation and usage

Install and configure this plugin:

  • Install “google dictionary” by package control.
  • Set the “lang” in menu: /Preference/Packages/Google dictionary/Settings User.
  • Define hot-key for googledict and googledictmode command in menu: Preference/Key-Binding User
  • Restart sublime.

To use the goodl dictionary:

  • Select a phrase or word, then press hot-key to translate
  • Or enter translate mode, then further select will be translated.

Setting

Default Setting

{
    // trasnlate target language
    "lang" : "zh-TW",
}

Supported lang include:

  • Arabic – ar
  • Bulgarian – bg
  • Chinese (Simplified) – zh-CN
  • Chinese (Traditional) – zh-TW (only available as a destination language)
  • Croatian – hr
  • Czech – cs
  • Danish – da
  • Dutch – nl
  • English – en
  • Finnish – fi
  • French – fr
  • German – de
  • Greek – el
  • Hebrew – iw
  • Hindi – hi
  • Italian – it
  • Japanese – ja
  • Korean – ko
  • Norwegian – no
  • Polish – pl
  • Portuguese – pt
  • Romanian – ro
  • Russian – ru
  • Spanish – es
  • Swedish – sv

Hot key setting

{ "command": "googledict", "keys": ["ctrl+t"] },
    { "command": "googledictmode", "keys": ["ctrl+alt+t"] }

Usage of package control

Via the Sublime Package Manager:

  • Ctrl+Shift+P or Cmd+Shift+P in Linux / Windows / OS X
  • Type install, select Package Control: Install Package
  • Select Google dictionary