File tree Expand file tree Collapse file tree 5 files changed +11
-0
lines changed
content-script/selection-tools Expand file tree Collapse file tree 5 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 55
55
"Translate" : " Translate" ,
56
56
"Translate (Bidirectional)" : " Translate (Bidirectional)" ,
57
57
"Translate (To English)" : " Translate (To English)" ,
58
+ "Translate (To Chinese)" : " Translate (To Chinese)" ,
58
59
"Summary" : " Summary" ,
59
60
"Polish" : " Polish" ,
60
61
"Sentiment Analysis" : " Sentiment Analysis" ,
Original file line number Diff line number Diff line change 55
55
"Translate" : " 翻译" ,
56
56
"Translate (Bidirectional)" : " 双向翻译" ,
57
57
"Translate (To English)" : " 翻译为英语" ,
58
+ "Translate (To Chinese)" : " 翻译为中文" ,
58
59
"Summary" : " 总结" ,
59
60
"Polish" : " 润色" ,
60
61
"Sentiment Analysis" : " 情感分析" ,
Original file line number Diff line number Diff line change 55
55
"Translate" : " 翻譯" ,
56
56
"Translate (Bidirectional)" : " 雙向翻譯" ,
57
57
"Translate (To English)" : " 翻譯為英文" ,
58
+ "Translate (To Chinese)" : " 翻譯為中文" ,
58
59
"Summary" : " 摘要" ,
59
60
"Polish" : " 潤飾" ,
60
61
"Sentiment Analysis" : " 情感分析" ,
Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ export const defaultConfig = {
187
187
selectionTools : [
188
188
'translate' ,
189
189
'translateToEn' ,
190
+ 'translateToZh' ,
190
191
'translateBidi' ,
191
192
'summary' ,
192
193
'polish' ,
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ export const config = {
26
26
return `Translate the following into English and only show me the translated content:\n${ selection } `
27
27
} ,
28
28
} ,
29
+ translateToZh : {
30
+ icon : < Globe /> ,
31
+ label : 'Translate (To Chinese)' ,
32
+ genPrompt : async ( selection ) => {
33
+ return `Translate the following into Chinese and only show me the translated content:\n${ selection } `
34
+ } ,
35
+ } ,
29
36
translateBidi : {
30
37
icon : < Globe /> ,
31
38
label : 'Translate (Bidirectional)' ,
You can’t perform that action at this time.
0 commit comments