translateToZh (#342)

This commit is contained in:
josc146
2023-06-12 22:54:48 +08:00
parent a0c19d7df7
commit ad4f1c948c
5 changed files with 11 additions and 0 deletions
+1
View File
@@ -55,6 +55,7 @@
"Translate": "Translate",
"Translate (Bidirectional)": "Translate (Bidirectional)",
"Translate (To English)": "Translate (To English)",
"Translate (To Chinese)": "Translate (To Chinese)",
"Summary": "Summary",
"Polish": "Polish",
"Sentiment Analysis": "Sentiment Analysis",
+1
View File
@@ -55,6 +55,7 @@
"Translate": "翻译",
"Translate (Bidirectional)": "双向翻译",
"Translate (To English)": "翻译为英语",
"Translate (To Chinese)": "翻译为中文",
"Summary": "总结",
"Polish": "润色",
"Sentiment Analysis": "情感分析",
+1
View File
@@ -55,6 +55,7 @@
"Translate": "翻譯",
"Translate (Bidirectional)": "雙向翻譯",
"Translate (To English)": "翻譯為英文",
"Translate (To Chinese)": "翻譯為中文",
"Summary": "摘要",
"Polish": "潤飾",
"Sentiment Analysis": "情感分析",
+1
View File
@@ -187,6 +187,7 @@ export const defaultConfig = {
selectionTools: [
'translate',
'translateToEn',
'translateToZh',
'translateBidi',
'summary',
'polish',
@@ -26,6 +26,13 @@ export const config = {
return `Translate the following into English and only show me the translated content:\n${selection}`
},
},
translateToZh: {
icon: <Globe />,
label: 'Translate (To Chinese)',
genPrompt: async (selection) => {
return `Translate the following into Chinese and only show me the translated content:\n${selection}`
},
},
translateBidi: {
icon: <Globe />,
label: 'Translate (Bidirectional)',