From 4f4a82993c640cc4f85468200df95134584dd529 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 2 May 2024 17:07:15 +0400 Subject: [PATCH] Update google translate widget --- community/google-translate-widget.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/community/google-translate-widget.lua b/community/google-translate-widget.lua index 841c4a7..038f2ad 100644 --- a/community/google-translate-widget.lua +++ b/community/google-translate-widget.lua @@ -2,7 +2,7 @@ -- data_source = "https://translate.google.com" -- type = "widget" -- author = "Andrey Gavrilov" --- version = "1.1" +-- version = "1.2" local json = require "json" local uri = "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto" @@ -18,7 +18,7 @@ end function on_dialog_action(text) if text == "" or text == -1 then - on_alarm() + on_resume() else text_from = text translate(text)