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

Inspr

by wzhix ST3

A CN-EN translation plugin that helps Chinese programmers to name variables.

Details

Installs

  • Total 80
  • Win 59
  • Mac 15
  • Linux 6
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
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Inspr

A tranlation plugin for Sublime Text 3 that helps Chinese programmers to name variables and traslate Chinese words to English with specific variable format.

Installation

Latest Release

Usage

Input the variable name you want to translate in Chinese and press shortcut keys, the plugin will translate them to English with specific format.

There are 4 types of variable format available — lowerCamelCase, UpperCamelCase, lower_underscores and UPPER_UNDERSCORES, each of them has its corresponding key-mapping.

For example, let 普通变量 (Ctrl + Command + i), a quick panel will popup up and show the variable-formated results as commonVariable, commonVariables, geheric and ordinaryVariable.

Demonstration

插件效果

Settings

词典源(Dictionary Source)

Inspr provides 3 dictionaries by default — 有道翻译(Youdao), 百度翻译(Baidu) and 微软翻译(Microsoft). Valid options are “Youdao”, “Baidu”, “Microsoft”, ["Youdao", "Baidu"] is recommended.

"dictionary_source": ["Youdao", "Baidu"]

清除选中(Clear Selection)

If true, the selection in current editor will clear after the item in quick panel is selected. true is recommended.

"clear_selection": true

自动检测单词(Auto Detect Words)

If true, Inspr will search word toward left and right. true is recommended.

"auto_detect_words": true

忽略单词(Ignore Words)

Words in this list will be skiped when processing. ["A", "a", "the", "The"] is recommended.

"ignore_words": ["A", "a", "the", "The"]

完整提示(Full Inspiration)

If true, web translations will be added in results. Inspr will provide less accurated results but it will be more candidate translations in results. true is recommended.

"full_inspiration": true

结果显示为等宽字体(Show with Monospace Font)

If true, results in quick panel will be rendered with monospace font. false is recommended.

"show_with_monospace_font": false

HTTP 代理(HTTP Proxy)

Connect translation API server with http proxy.

"http_proxy": ""

License

Copyright 2017 zhix

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.