Quick Translate

quick-translate
By p0ly60n

A Package to quickly translate text of various languages

languages
translation
dictionary

Paste this command in a terminal to install the package

espanso install quick-translate
Description
Source

Espanso Translate-Shell Extension

This package utilizes the functionality of translate-shell to translate texts into various languages using Espanso Open-Source Text-Expander.

Installation

Before using this package, make sure you have translate-shell installed on your system. If you don't, you can install it for your OS here. Make sure to install and use WSL when using Windows.
Once you have it installed, you can install this package using the following command:
espanso install quick-translate espanso restart
After Installing, you can change the
sourcelang
and
targetlang
variables in defaultlang.yml to your desired default languages. You can find the valid names at the bottom of package.yml. Please note that if there's an update in the future, those files could be overwritten.

Usage

  • ::trans
    : Translates the selected text to the target language (default: English)
  • ::etrans
    : Extended Translate - Translates the Text from a source language (default: German) to a target language (default: English)