Code Monkey home page Code Monkey logo

ulauncher-deepl's Introduction

DeepL for Ulauncher

A powerful DeepL translator for Ulauncher.

Features

  • Translate text (kinda obvious)
  • Quickly translate to the last used languages
  • Use from:to in front of the text to choose languages even quicker! (See Quick Language Selection)
  • Many options to customize the translator! (See Preferences)
  • Copy the result to clipboard, translate it into another language or use the same input text again by pressing one button!
  • Up to 500000 characters per month for free! (DeepL limitations)

image image image image

Requirements

pip install deepl

Get an API key

You can get an DeepL API key for free at https://www.deepl.com/pro-api
With free API keys you can translate up to 500000 characters per month.
Of course you can also buy an API key and get more characters if needed.

Quick Language Selection

Using the pattern from:to in front of the to be translated text you can quickly select the languages.
For example: en:es to translate from English to Spanish.

You can also specify auto and select for the source language and select for the target language.
If using auto the translator will automatically detect the source language.
If using select you will be able to select the source/target language respectively.
This is useful when you have selected languages in the preferences. Using this method you can temporarily "set" these settings to auto or select.

If you don't know a language code you can specify anything. The extension will tell you it doesn't know that language code and offer you a list of codes.

Preferences

Keyword
The keyword to use the extension.
Defaults to tr.

API key
Your DeepL API key. See Get an API key.

Source language
The language you want to translate from.
Set to auto to let DeepL detect the language automatically.
Set to select to select the language manually each time.
Set to a language code to always use that language. If you don't know the language code enter something else. Then the extension will tell you that it doesn't know that language code and offer you a list of codes.
Defaults to select.

Target language
The language you want to translate to.
Set to select to select the language manually each time.
Set to a language code to always use that language. If you don't know the language code enter something else. Then the extension will tell you that it doesn't know that language code and offer you a list of codes.
Defaults to select.

Number of quick access languages
Specifies how many languages to translate to are displayed for quick access.
This setting applies only when Target language is set to select.
Defaults to 3.

Number of languages per page
Specifies how many languages are displayed per page.
Defaults to 10.

Split result in lines every n characters
Specifies after how many characters the result text is split into multiple lines.
Words won't be split.
Set to 0 to disable splitting. Warning: Large translated texts won't be displayed in full.
Defaults to 65.

Formality of translated text
Specifies the formality of the translated text if available for the target language.
Available options: default, less and more.
Defaults to default.

ulauncher-deepl's People

Contributors

rapha149 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ulauncher-deepl's Issues

No translation happens

Hi,

when I enter 'tr' followed by a text I want to be translated I am asked for auto-detection or the language from which I want to translate and after that a list of target languages is offered but independend of the selected target language no translation happens.
Can I provide any additional information to help searching for a solution?

CU
Michi

How would I select a target language that is not displayed?

At any point in time Ulauncher shows only a limited number of results. How can I select languages other than the ones on top of the list? For example "Italian".

How to reproduce:

  1. Invoke Ulauncher
  2. Write "tr some text to translate"
  3. Press Alt+Enter for auto detecting the source language
  4. A list of target languages is presented, but not all are visible/selectable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.