Skip to content

Latest commit

 

History

History
112 lines (79 loc) · 4.56 KB

readme_en.md

File metadata and controls

112 lines (79 loc) · 4.56 KB

PowerTranslator

A translation plugin for PowerToys Run, fast and stable.

GitHub release (latest by date) GitHub Repo stars GitHub all releases GitHub

中文

About

A plugin for PowerToys Run.

The plugin has been updated to use Youdao translation, which supports translation for all languages supported by Youdao translation.

Usage

  • The default trigger key is |.

    • Press alt+space to open PowerToys Run, and enter ^[text to be translated].
    • Press Enter to copy the translation result to the clipboard.

    Demo of translating 'command' command

    Demo of translating '命令' chinese

  • Chinese with pinyin: Refer to the above demo for translating '命令'.

  • Quickly translate the clipboard:

    • When there is text in the clipboard, simply type the trigger keyword ^ to quickly translate the content in the clipboard.

      clipboard

  • Specify the target language of translation:

    • Use ^[words]->[target language], for example, ^你好->ja means translate '你好' into Japanese. Specified language Common language codes:
      Language Code Note
      Chinese(Simplified) zh-CHS Simplified Chinese
      Chinese(Traditional) zh-CHT Traditional Chinese
      Japanese ja Japanese
      English en English
      Korean ko 한국어
      French fr En français
      Russian ru русск
  • Search suggestions:

    • Search content according to the current input suggestions. suggest
    • You can choose whether to enable suggestions in the settings, corresponding to Enable search suggest.
  • Read content:

    • Supports reading Chinese and English (shortcut key ctrl+enter). read
    • Based on Youdao TTS interface.
    • Supports automatic reading of results function, which is off by default and can be turned on in the settings, corresponding to Automatic reading result.
  • History record:

    • Typing h or having no translation target in the clipboard will display translation history. his
    • Default 15 records.
    • Why doesn't it support customizing the upper limit entry? Because the official only provides a bool type custom parameter, the current version does not support customizing the upper limit of translation history. I will update it when it is supported later. Or you can download the source code and modify it yourself.
  • Second Language

    • Enable the second translation target language, disabled by default second option
    • When enabled, the second language result will be automatically displayed with each translation second

Install

  1. Close PowerToys.
  2. Download Translator.zip.
  3. Extract it to %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins. As shown in the figure: file
  4. Start PowerToys.

Refer to official documents, Third-Party plugins for PowerToy Run

Installation-upgrade detailed tutorial

Setting

  • If there is a trigger key conflict, modify the default trigger key (it is recommended to modify it to "`" and check for conflicts). change active key
  • It is recommended to check Clear previous query at startup, which can solve the problem that clipboard quick translation cannot be triggered. auto clean
  • It is recommended to check Smooth input, which can optimize the input experience. enable Smooth input
  • Toggles the default target translation language, which defaults to 'auto' languages

Issue

If you find translation failure, unknown errors, or need new features, please submit an issue. I will fix or improve it in time.