|
преди 1 година | |
---|---|---|
.. | ||
README.MD | преди 1 година | |
demo.gif | преди 1 година | |
demo1.gif | преди 1 година | |
gnome-translate.svg | преди 1 година | |
translate.lua | преди 1 година |
This widget allows quickly translate words or phrases without opening a browser - just using Awesome. To provide direction of the translation add the 2 letters code of the source and target languages at the end of the phrase, for example hello enfr will translate hello from English to French. This widget is based on Watson Language Translator from IBM.
Require widget in rc.lua:
local translate = require("awesome-wm-widgets.translate-widget.translate")
Add a shortcut to run translate prompt:
awful.key({ modkey }, "c", function()
translate.launch{api_key = '<api-key>', url = 'url'}
end, { description = "run translate prompt", group = "launcher" })