mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-10 12:04:45 +08:00
translateToZh (#342)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
"Translate": "翻译",
|
||||
"Translate (Bidirectional)": "双向翻译",
|
||||
"Translate (To English)": "翻译为英语",
|
||||
"Translate (To Chinese)": "翻译为中文",
|
||||
"Summary": "总结",
|
||||
"Polish": "润色",
|
||||
"Sentiment Analysis": "情感分析",
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
"Translate": "翻譯",
|
||||
"Translate (Bidirectional)": "雙向翻譯",
|
||||
"Translate (To English)": "翻譯為英文",
|
||||
"Translate (To Chinese)": "翻譯為中文",
|
||||
"Summary": "摘要",
|
||||
"Polish": "潤飾",
|
||||
"Sentiment Analysis": "情感分析",
|
||||
|
||||
@@ -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)',
|
||||
|
||||
Reference in New Issue
Block a user