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

Translator

by Dmytro Voytko ST3

🌐 Translation plugin (multi-engine, fast, flexible) for SublimeText 3 & 4, works without API keys, works in China

Details

Installs

  • Total 14K
  • Win 9K
  • Mac 3K
  • Linux 2K
Apr 26 Apr 25 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
Windows 0 6 4 1 4 2 3 4 2 1 3 5 0 2 4 4 2 3 2 1 2 1 2 4 0 1 0 4 3 2 3 2 1 1 2 2 0 2 2 5 3 3 2 5 4 5
Mac 0 3 1 2 0 0 0 2 2 0 0 3 1 0 0 0 1 2 0 0 0 0 1 1 2 0 0 7 0 0 2 1 1 0 0 2 0 1 0 1 0 0 0 1 1 0
Linux 0 0 1 0 0 0 0 0 1 0 1 1 0 0 0 1 0 1 0 0 0 0 0 3 2 0 0 0 0 0 1 0 0 0 1 2 1 0 0 1 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Stand With Ukraine Support Ukraine Downloads Maintenance

Translator Plugin (multi-engine) for SublimeText ¾

Version: 3.3.1, [Google] & [Bing] translate, supported 133+ languages.

This plugin uses a standard Google/Bing translate page results. It works fast! And as API keys are not required it makes plugin very easy to use. However it isn't 100% officially supported, so if Google/Bing change their URL schema it could break the plugin.

This version includes Google & Bing translate, text readability analysis and statistics.

🎯 Features:

  • 133+ languages supported
  • SublimeText 3 & 4 supported
  • Autodetect source language
  • Ability to specify source & target languages in settings
  • Ability to choose the target language in context menu
  • Works without VPN/proxies in China (choose 'bingcn' engine)
  • 3 work modes:
    • replace selected text with translation,
    • insert translation after it (default)
    • to_buffer - translation goes to clipboard (without changing the text)
  • Ability to show translation in popup without changing original text
  • Ability to translate your clipboard / current word if no text selected
  • Ability to replace line breaks inside text while translating (with space, comma, etc), useful to translate .po files
  • Ability to analyze text readability and statistics (including Automated Readability Index, Coleman-Liau Index) to improve your documentation or SEO texts.

🚀 How to Use (easy)

  1. Select some text in the editor
  2. Run Translate selected text command. You can do it in 3 ways:
  3. via binding and using hotkey Ctrl+Alt+G (⌘Cmd+Alt+G in OSX)
  4. via Tools ➡️ Translator ➡️ Translate seclected text
  5. via Command Pallet, Ctrl+Shift+P (⌘Cmd+Shift+P in OSX) > Translate selected text
  6. you can also translate the text in your clipboard, or the current word if no text selected
  7. If you want to change translation to inline mode (when translation replaces original selected text), change results_mode in settings.
  8. If you just want to see translation without changing your text, you can set show_popup in settings.
  9. If you want to translate by default to different than English language, change target_language in settings.

💡 If you want to check Readability, select some text and run Analyze text command. You can do it in 3 ways: * via binding and using hotkey Ctrl+Alt+A (⌘Cmd+Alt+A in OSX) * via Tools ➡️ Translator ➡️ Analyze text * via Command Pallet, Ctrl+Shift+P (⌘Cmd+Shift+P in OSX) > Analyze text - to clear Analysis highlights use Tools ➡️ Translator ➡️ Clear Analysis highlights

🛠️ Commands

  • Translate selected text - translates selected text based on your settings
  • Translate selected to… - you choose the target language before translation
  • Translate clipboard - translates text of your clipboard based on your settings
  • Translator: Print supported languages to console - to see available languages for changing translation settings
  • Analyze text - to see text statistics, readability checks and highlights
  • Clear Analysis highlights - to clear text analysis highlights

Installation (via Package Control)

  • If you don't have Package Control, follow this instruction
  • Open the Command Palette (Tools ➡️ Command Palette… )
  • Search for and choose “Package Control: Install Package” (give it a few seconds to return a list of available packages)
  • Search for “Translator” and install.

🧰 Settings

via Preferences ➡️ Package settings ➡️ Translator ➡️ Settings

{
    "engine": "google",           // "google", "bing", 'bingcn' for cn.bing.com, 'googlehk' for google.com.hk 
    "source_language": "",        // Leave empty for Auto detection
    "target_language": "en",      // ! Must be specified    
    "results_mode": "insert",     // "insert", "replace" or "to_buffer" 
    "show_popup": false,          // false or true 
    "replace_linebreaks": false,  // false or true 
    "linebreak_replacement": " ", // could be a space, comma, semicolon, etc
    "analysis_language": "en"     // Language for Text Analysis: "en", "uk"
}

📦️ Plugin repository at GitHub

Translation plugin (multi-engine, fast) for SublimeText 3 & 4

Made with ❤️ in Ukraine 🇺🇦 Dmytro Voytko

If you find Translator package helpful, please ⭐️star⭐️ my repo https://github.com/dmytrovoytko/SublimeText-Translate/ to help other people discover it 🙏

Support

  • Your issues, feedback and suggestions regarding Translator plugin are welcome, feel free to report here.
  • Feel free to fork and submit pull requests.

📄 License:

MIT

Credits: