We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d5ab4e commit 9302559Copy full SHA for 9302559
engine/bing.go
@@ -5,8 +5,8 @@ import (
5
"fmt"
6
"io/ioutil"
7
"net/http"
8
- "strings"
9
"os"
+ "strings"
10
11
"github.com/liipx/gdict/common"
12
)
engine/youdao.go
@@ -158,6 +158,16 @@ func (yd *Youdao) WFOutput() string {
158
}
159
160
161
+ // add translations
162
+ for _, tr := range yr.Translation {
163
+ result.Items = append(result.Items, &WFItem{
164
+ Valid: true,
165
+ Title: tr,
166
+ Subtitle: tr,
167
+ Arg: tr,
168
+ })
169
+ }
170
+
171
resultByte, err := json.Marshal(result)
172
if err != nil {
173
os.Exit(1)
0 commit comments