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
May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 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
Windows 0 2 4 1 2 2 0 4 2 2 1 2 2 2 2 3 2 2 0 3 3 2 1 3 3 1 4 8 6 4 1 4 2 3 4 2 1 3 5 0 2 4 4 2 3 2
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 1 0 0 0 0 0 3 1 2 0 0 0 2 2 0 0 3 1 0 0 0 1 2 0
Linux 1 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 1 2 0 1 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 1 0 1 1 0 0 0 1 0 1 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: