All Projects → timgrossmann → Anytranslate

timgrossmann / Anytranslate

Licence: MIT license
💭 Translate words from and to your language, anywhere.

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to Anytranslate

Dot Hammerspoon
My personal Hammerspoon configuration - mirrored from GitLab
Stars: ✭ 165 (+870.59%)
Mutual labels:  mac, hammerspoon
dotfiles
🏡 There's no place like ~/
Stars: ✭ 59 (+247.06%)
Mutual labels:  mac, hammerspoon
mini-qml
Minimal Qt deployment for Linux, Windows, macOS and WebAssembly.
Stars: ✭ 44 (+158.82%)
Mutual labels:  mac
linearmouse
🖱 The mouse and trackpad utility for Mac.
Stars: ✭ 1,151 (+6670.59%)
Mutual labels:  mac
Quickeys
A mac menu bar app that provides note taking functionality though a quick dropdown menu.
Stars: ✭ 54 (+217.65%)
Mutual labels:  mac
platform device id
flutter plugin to get device id
Stars: ✭ 32 (+88.24%)
Mutual labels:  mac
12306-electron
🚄 electron-vue构建12306跨平台(Mac、Windows、Linux)客户端
Stars: ✭ 125 (+635.29%)
Mutual labels:  mac
plexydesk
Lightweight Desktop Manager for Gnu/Linux and FreeBSD - Ideal for Low resource computers
Stars: ✭ 33 (+94.12%)
Mutual labels:  mac
webplayer-hotkeys
A Chrome extension that assigns hotkeys to play/pause, and switch musics (next and previous). Works with Spotify, Deezer, SoundCloud and Youtube
Stars: ✭ 16 (-5.88%)
Mutual labels:  hotkey
Open-iTerm-or-Terminal-Here...
Generates an Applescript app that you can put in your Finder toolbar which will open an iTerm or Terminal tab at the current directory.
Stars: ✭ 122 (+617.65%)
Mutual labels:  mac
management tools
A collection of scripts and packages to simplify OS X management.
Stars: ✭ 93 (+447.06%)
Mutual labels:  mac
openconnect-gui-menu-bar
OpenConnect Menu Bar - Connect/Disconnect/Status - for Mac OS X (supports Duo push/sms/phone, or Yubikey, Google Authenticator, Duo, or any TOTP)
Stars: ✭ 56 (+229.41%)
Mutual labels:  mac
cliptext
Clipboard manager for macOS. Built with Electron.js
Stars: ✭ 37 (+117.65%)
Mutual labels:  mac
curry
curry is a framework built to enhance and compliment Foundation and UIKit.
Stars: ✭ 47 (+176.47%)
Mutual labels:  mac
ukrainian-typographic-keyboard
Combined Ukrainian keyboard layout with typographic symbols
Stars: ✭ 356 (+1994.12%)
Mutual labels:  mac
COLLADAViewer2
An OBSOLETE instructional OS X application to load/display COLLADA Models and export to compact binary representations.
Stars: ✭ 48 (+182.35%)
Mutual labels:  mac
SACK
System Abstraction Component Kit
Stars: ✭ 18 (+5.88%)
Mutual labels:  mac
Notarize
Notarization status monitoring tool for macOS, supporting multiple developer accounts.
Stars: ✭ 90 (+429.41%)
Mutual labels:  mac
AndroidToRN
原生android中嵌入React Native
Stars: ✭ 95 (+458.82%)
Mutual labels:  mac
Installer
A simple standalone program which automates the installation, removal and maintenance of BetterDiscord.
Stars: ✭ 1,391 (+8082.35%)
Mutual labels:  mac

Anytranslate

Translate words from and to your native language, anywhere.

This script is based on Anycomplete

anytranslate gif


How to install the script

$ git clone https://github.com/timgrossmann/Anytranslate.git ~/.hammerspoon/anytranslate

Now you simply need to add

dofile("./anytranslate/anytranslate.lua")

to the init.lua file inside of the .hammerspoon folder.

If you don't have an init.lua file, just create it


How to install Hammerspoon

Go the the HammerSpoon Webpage and check out "How do I install it?"

Once installed just make sure you have accessibility enabled in the preferences.


Setup

Enter your keys and languages into the script file. Defaults are "de"(german) to en("english")

You can get the translation api key here: https://tech.yandex.com/translate/
And the dictionary api key here: https://tech.yandex.com/dictionary/

Just register for free and click "Get a free API key."

local TRANS_KEY = <YOUR KEY>
local DICT_KEY = <YOUR KEY>
        
local NATIVE_LANG = <YOUR NATIVE LANGUAGE>
local INTO_LANG = <DEFAULT LANGUAGE>  --In what language to you want to tranlaste the text if you enter your native language
local LANG_HINTS = "de,en" --Prefer some languages (will be prefered if detection is not surea)

Usage

Start with the hotkey ⌃⌥⌘T. Once you start typing, translations will be displayed once a valid word is entered. They can be choosen with ⌘1-9 or by pressing the arrow keys and Enter.

If you want to change the hotkey just replace the "T" on the second line of the script with your favored key

hs.hotkey.bind({"cmd", "alt", "ctrl"}, "T", function()

Supported languages:

en, es, de, fr, it, pl, ru, tr, uk

Supported translations:

  • ru-ru
  • ru-en
  • ru-pl
  • ru-uk
  • ru-de
  • ru-fr
  • ru-es
  • ru-it
  • ru-tr
  • en-ru
  • en-en
  • en-de
  • en-fr
  • en-es
  • en-it
  • en-tr
  • pl-ru
  • uk-ru
  • de-ru
  • de-en
  • fr-ru
  • fr-en
  • es-ru
  • es-en
  • it-ru
  • it-en
  • tr-ru
  • tr-en

Why yandex ?
- It's free
- Minimalistic "get key" process
- 2.000.000 calls per month

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].