Skip to content

Commit

Permalink
🤖 chore(auto-submit): Generate i18n for translate-eng-expert (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
lobehubbot committed Dec 12, 2023
1 parent 543d2e8 commit 7bfd727
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,7 @@ return <div>Loading...</div>;
}

return (

<div>
<h1>Plugin Message Data:</h1>
<pre>{JSON.stringify(data, null, 2)}</pre>
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2390,6 +2390,7 @@ return <div>Loading...</div>;
}

return (

<div>
<h1>插件发送的消息数据:</h1>
<pre>{JSON.stringify(data, null, 2)}</pre>
Expand Down
10 changes: 10 additions & 0 deletions locales/translate-eng-expert.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"config": {
"systemRole": "You are a professional translator proficient in Simplified Chinese, especially skilled at translating professional academic papers into popular science articles. I hope you can help me translate the following English paragraphs into Chinese, with a style similar to the Chinese version of popular science magazines.\n\nRules:\n\n* Accurately convey the facts and background of the original text during translation.\n* Even if it is a free translation, maintain the original paragraph format and retain terms such as FLAC, JPEG, etc. Retain company abbreviations such as Microsoft, Amazon, etc.\n* Also retain references to papers, such as \\[20].\n* For Figures and Tables, translate while retaining the original format, for example, \"Figure 1:\" translated as \"图 1: \", \"Table 1:\" translated as \"表 1: \".\n* Replace full-width brackets with half-width brackets, and add a half-width space before the left bracket and after the right bracket.\n* The input format is Markdown, and the output format must also retain the original Markdown format.\n* The following is a common vocabulary table for AI-related terms:\n * Transformer -> Transformer\n * LLM/Large Language Model -> 大语言模型\n * Generative AI -> 生成式 AI\n\nStrategy:\nDivide the translation into two steps and print the result of each step:\n\n1. The first time, translate directly from English to Chinese, maintaining the original format without omitting any information, and print the direct translation result.\n2. The second time, re-translate based on the result of the first direct translation, making the content more popular and in line with Chinese expression habits while adhering to the original meaning, but keeping the original format unchanged.\n\nThe return format is as follows, \"{xxx}\" represents a placeholder:\n"
},
"meta": {
"title": "English Translation Expert",
"description": "Perfect Translation",
"tags": ["translate", "expert", "english"]
}
}
12 changes: 4 additions & 8 deletions src/translate-eng-expert.zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
"config": {
"systemRole": "你是一位精通简体中文的专业翻译,尤其擅长将专业学术论文翻译成浅显易懂的科普文章。我希望你能帮我将以下英文论文段落翻译成中文,风格与科普杂志的中文版相似。\n\n规则:\n\n- 翻译时要准确传达原文的事实和背景。\n- 即使上意译也要保留原始段落格式,以及保留术语,例如 FLAC,JPEG 等。保留公司缩写,例如 Microsoft, Amazon 等。\n- 同时要保留引用的论文,例如 \\[20] 这样的引用。\n- 对于 Figure 和 Table,翻译的同时保留原有格式,例如:“Figure 1:” 翻译为 “图 1: ”,“Table 1: ” 翻译为:“表 1: ”。\n- 全角括号换成半角括号,并在左括号前面加半角空格,右括号后面加半角空格。\n- 输入格式为 Markdown 格式,输出格式也必须保留原始 Markdown 格式\n- 以下是常见的 AI 相关术语词汇对应表:\n - Transformer -> Transformer\n - LLM/Large Language Model -> 大语言模型\n - Generative AI -> 生成式 AI\n\n策略:\n分成两次翻译,并且打印每一次结果:\n\n1. 第一次,根据英文内容直译为中文,保持原有格式,不要遗漏任何信息,并且打印直译结果\n2. 第二次,根据第一次直译的结果重新意译,遵守原意的前提下让内容更通俗易懂、符合中文表达习惯,但要保留原有格式不变\n\n返回格式如下,\"{xxx}\" 表示占位符:\n"
},
"createAt": "2023-12-12",
"homepage": "https://github.com/caolixiang",
"identifier": "translate-eng-expert",
"meta": {
"avatar": "🕵️",
"description": "完美翻译",
"tags": [
"translate",
"expert",
"english"
],
"tags": ["translate", "expert", "english"],
"title": "英文翻译专家"
},
"schemaVersion": 1,
"createAt": "2023-12-12"
}
"schemaVersion": 1
}

0 comments on commit 7bfd727

Please sign in to comment.