{"id":17912305,"url":"https://github.com/timgrossmann/anytranslate","last_synced_at":"2025-08-23T19:33:36.617Z","repository":{"id":147242616,"uuid":"77029073","full_name":"timgrossmann/Anytranslate","owner":"timgrossmann","description":"💭 Translate words from and to your language, anywhere.","archived":false,"fork":false,"pushed_at":"2018-01-19T07:25:35.000Z","size":9,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T00:03:54.120Z","etag":null,"topics":["hammerspoon","hotkey","language","lua","mac","translation"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timgrossmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-21T07:34:08.000Z","updated_at":"2023-02-16T19:26:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ca89057-1dba-4f11-bc5e-ab7d38f6e497","html_url":"https://github.com/timgrossmann/Anytranslate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timgrossmann%2FAnytranslate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timgrossmann%2FAnytranslate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timgrossmann%2FAnytranslate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timgrossmann%2FAnytranslate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timgrossmann","download_url":"https://codeload.github.com/timgrossmann/Anytranslate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245180073,"owners_count":20573594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hammerspoon","hotkey","language","lua","mac","translation"],"created_at":"2024-10-28T19:44:27.793Z","updated_at":"2025-03-23T22:34:24.828Z","avatar_url":"https://github.com/timgrossmann.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anytranslate\nTranslate words from and to your native language, anywhere.\n\u003e This script is based on [Anycomplete](https://github.com/nathancahill/Anycomplete)\n\n![anytranslate gif](http://i.giphy.com/3o7TKFyolIn4dDJ2xi.gif)\n\n---\n\n### How to install the script\n```bash\n$ git clone https://github.com/timgrossmann/Anytranslate.git ~/.hammerspoon/anytranslate\n```\n\nNow you simply need to add \n```lua\ndofile(\"./anytranslate/anytranslate.lua\")\n```\nto the init.lua file inside of the .hammerspoon folder.\n\u003e If you don't have an init.lua file, just create it\n\n---\n\n### How to install Hammerspoon\nGo the the [HammerSpoon Webpage](http://www.hammerspoon.org) and check out \"How do I install it?\"\n\nOnce installed just make sure you have accessibility enabled in the preferences.\n\n\u003cimg src=\"http://i65.tinypic.com/sbua2e.png\" width=\"50%\"/\u003e\n\n---\n\n### Setup\nEnter your keys and languages into the script file. Defaults are \"de\"(german) to en(\"english\")\n\u003e You can get the translation api key here: https://tech.yandex.com/translate/  \n\u003e And the dictionary api key here: https://tech.yandex.com/dictionary/  \n\n\u003e Just register for free and click \"Get a free API key.\"\n\n\n```lua\nlocal TRANS_KEY = \u003cYOUR KEY\u003e\nlocal DICT_KEY = \u003cYOUR KEY\u003e\n        \nlocal NATIVE_LANG = \u003cYOUR NATIVE LANGUAGE\u003e\nlocal INTO_LANG = \u003cDEFAULT LANGUAGE\u003e  --In what language to you want to tranlaste the text if you enter your native language\nlocal LANG_HINTS = \"de,en\" --Prefer some languages (will be prefered if detection is not surea)\n```\n\n---\n\n\n### Usage\nStart with the hotkey `⌃⌥⌘T`. Once you start typing, translations will be displayed once a valid word is entered.\nThey can be choosen with `⌘1-9` or by pressing the arrow keys and Enter.\n\nIf you want to change the hotkey just replace the \"T\" on the second line of the script with your favored key\n```lua\nhs.hotkey.bind({\"cmd\", \"alt\", \"ctrl\"}, \"T\", function()\n```\n\n---\n\n#### Supported languages: \n\u003e en, es, de, fr, it, pl, ru, tr, uk  \n\n\u003e Supported translations:\n  - ru-ru\n  - ru-en\n  - ru-pl\n  - ru-uk\n  - ru-de\n  - ru-fr\n  - ru-es\n  - ru-it\n  - ru-tr\n  - en-ru\n  - en-en\n  - en-de\n  - en-fr\n  - en-es\n  - en-it\n  - en-tr\n  - pl-ru\n  - uk-ru\n  - de-ru\n  - de-en\n  - fr-ru\n  - fr-en\n  - es-ru\n  - es-en\n  - it-ru\n  - it-en\n  - tr-ru\n  - tr-en  \n  \n\u003e Why yandex ?  \n        - It's free  \n        - Minimalistic \"get key\" process  \n        - 2.000.000 calls per month  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimgrossmann%2Fanytranslate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimgrossmann%2Fanytranslate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimgrossmann%2Fanytranslate/lists"}