Skip to content

Bierchermuesli/albert-deepl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Albert-Deepl Extension

This is an Albert Extension for DeepL translations. This extension has a Albert-style-configuration-dialog.

  • formal/informal translation
  • helps to find any available language/ISO Code and sets default source/target language temporary for this session or permanent
  • temporary and persistent settings (formal, target and source language)
  • tracking usage

image

image

Install

in your terminal:

git clone https://github.com/Bierchermuesli/albert-deepl.git  ~/.local/share/albert/python/plugins/deepl
  • restart albert
  • enable this extension in plugin Tab
  • it might ask you for installing python deepl module
  • maybe start albert again :-)

DeepL API

This extension needs a valid DeepL API key. You can optain one on https://www.deepl.com/pro#developer. Please check their policy about usage, privacy.

After you got your key you can install in a Albert-manner like this:

  • dpl conf set key=xxx
  • dpl conf save
  • dpl conf reload

For this special case you have to save and reload the config (or reload albert). The extension has to re-initzailize.

Albert conf dialog

This is just a Idea. ATM only simiple key-value are supported. If you save the values, it is stored as a yaml in configLocation(), usually ~/.config/albert/DeepL Translate.yaml

image

image Ideas:

  • self-describing configuration file?
  • dicts / lists?
  • move default the conf functions to CPython for other plugins?

any feedback is welcome