```json
{
"widget": {
"type": "custom-template",
"isAPI": false,
"fullWidth": false,
"html": "<div class=\"container mx-auto px-4 py-8\">\n <div class=\"text-center mb-10\">\n <h2 class=\"text-3xl font-bold text-gray-800 mb-2\">Personnel Historical Comparison</h2>\n <p class=\"text-gray-600\">Comprehensive comparison of team members' historical performance and current capabilities</p>\n \n <div class=\"mt-6 flex flex-wrap justify-center gap-4\">\n <button class=\"px-4 py-2 bg-blue-600 text-white rounded-lg font-medium hover:bg-blue-700 transition-colors duration-300\">\n Current Comparison\n </button>\n <button class=\"px-4 py-2 bg-white border border-gray-300 rounded-lg font-medium hover:bg-gray-50 transition-colors duration-300\">\n 3 Months History\n </button>\n <button class=\"px-4 py-2 bg-white border border-gray-300 rounded-lg font-medium hover:bg-gray-50 transition-colors duration-300\">\n 6 Months History\n </button>\n <button class=\"px-4 py-2 bg-white border border-gray-300 rounded-lg font-medium hover:bg-gray-50 transition-colors duration-300\">\n 1 Year History\n </button>\n </div>\n </div>\n \n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-8\">\n <!-- Person 1 -->\n <div class=\"bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg\">\n <div class=\"p-6\">\n <div class=\"flex items-center mb-6\">\n <div class=\"relative\">\n <img src=\"/assets/images/avatar/01.jpeg\" alt=\"Person 1\" class=\"w-20 h-20 rounded-full object-cover border-4 border-white shadow-md\">\n <div class=\"absolute bottom-0 right-0 w-6 h-6 bg-blue-500 rounded-full border-2 border-white\"></div>\n </div>\n <div class=\"ml-4\">\n <h3 class=\"text-xl font-bold text-gray-800\">Zhang Ming</h3>\n <p class=\"text-gray-600\">Senior Product Manager</p>\n </div>\n </div>\n \n <!-- Historical Comparison Chart -->\n <div class=\"mb-6\">\n <h4 class=\"text-gray-700 font-medium mb-3 text-center\">Historical Capability Trend</h4>\n <div class=\"relative h-40\">\n <svg viewBox=\"0 0 400 150\" class=\"w-full h-full\">\n <!-- Grid lines -->\n <line x1=\"40\" y1=\"20\" x2=\"40\" y2=\"130\" stroke=\"#e5e7eb\" stroke-width=\"1\" />\n <line x1=\"40\" y1=\"130\" x2=\"380\" y2=\"130\" stroke=\"#e5e7eb\" stroke-width=\"1\" />\n \n <!-- Scale -->\n <text x=\"30\" y=\"25\" text-anchor=\"end\" font-size=\"10\" fill=\"#6b7280\">100%</text>\n <text x=\"30\" y=\"75\" text-anchor=\"end\" font-size=\"10\" fill=\"#6b7280\">50%</text>\n <text x=\"30\" y=\"130\" text-anchor=\"end\" font-size=\"10\" fill=\"#6b7280\">0%</text>\n \n <!-- Timeline -->\n <text x=\"100\" y=\"145\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">3 Months Ago</text>\n <text x=\"200\" y=\"145\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">2 Months Ago</text>\n <text x=\"300\" y=\"145\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">Current</text>\n \n <!-- Project Completion History Line -->\n <polyline points=\"40,110 100,90 200,100 300,75\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"2\" stroke-dasharray=\"4\" />\n <polyline points=\"40,110 100,90 200,100 300,94\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"2\" />\n <text x=\"350\" y=\"80\" text-anchor=\"start\" font-size=\"10\" fill=\"#3b82f6\">Project Completion</text>\n \n <!-- Collaboration History Line -->\n <polyline points=\"40,90 100,70 200,60 300,50\" fill=\"none\" stroke=\"#10b981\" stroke-width=\"2\" stroke-dasharray=\"4\" />\n <polyline points=\"40,90 100,70 200,60 300,88\" fill=\"none\" stroke=\"#10b981\" stroke-width=\"2\" />\n <text x=\"350\" y=\"55\" text-anchor=\"start\" font-size=\"10\" fill=\"#10b981\">Collaboration</text>\n \n <!-- Current Data Points -->\n <circle cx=\"300\" cy=\"75\" r=\"4\" fill=\"#3b82f6\" />\n <circle cx=\"300\" cy=\"94\" r=\"4\" fill=\"#3b82f6\" />\n <circle cx=\"300\" cy=\"50\" r=\"4\" fill=\"#10b981\" />\n <circle cx=\"300\" cy=\"88\" r=\"4\" fill=\"#10b981\" />\n </svg>\n </div>\n <div class=\"mt-4 text-center text-sm text-gray-600\">\n Dashed: 3 months ago | Solid: Current\n </div>\n </div>\n \n <!-- Radar Chart -->\n <div class=\"mb-6\">\n <h4 class=\"text-gray-700 font-medium mb-3 text-center\">Capability Radar Comparison</h4>\n <div class=\"flex justify-center gap-6\">\n <!-- Historical Radar -->\n <div class=\"relative w-32 h-32 opacity-50\">\n <svg viewBox=\"0 0 100 100\" class=\"w-full h-full\">\n <polygon points=\"50,10 70,30 80,60 70,90 30,90 20,60 30,30\" fill=\"none\" stroke=\"#e5e7eb\" stroke-width=\"1\" />\n <polygon points=\"50,45 55,50 58,60 55,70 45,70 42,60 45,50\" fill=\"rgba(59, 130, 246, 0.1)\" stroke=\"#3b82f6\" stroke-width=\"1\" />\n </svg>\n </div>\n <!-- Current Radar -->\n <div class=\"relative w-32 h-32\">\n <svg viewBox=\"0 0 100 100\" class=\"w-full h-full\">\n <polygon points=\"50,10 70,30 80,60 70,90 30,90 20,60 30,30\" fill=\"none\" stroke=\"#e5e7eb\" stroke-width=\"1\" />\n <polygon points=\"50,45 58,50 62,60 58,70 42,70 38,60 42,50\" fill=\"rgba(59, 130, 246, 0.2)\" stroke=\"#3b82f6\" stroke-width=\"1.5\" />\n </svg>\n </div>\n </div>\n </div>\n \n <!-- Historical Notes -->\n <div class=\"bg-blue-50 rounded-lg p-4 mb-4\">\n <h4 class=\"text-blue-800 font-medium mb-2\">Historical Evaluation</h4>\n <p class=\"text-sm text-blue-700\">Project completion rate increased by 19% over past 3 months, collaboration ability significantly enhanced with outstanding performance in cross-department projects.</p>\n </div>\n </div>\n </div>\n \n <!-- Person 2 -->\n <div class=\"bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg\">\n <div class=\"p-6\">\n <div class=\"flex items-center mb-6\">\n <div class=\"relative\">\n <img src=\"/assets/images/avatar/02.jpeg\" alt=\"Person 2\" class=\"w-20 h-20 rounded-full object-cover border-4 border-white shadow-md\">\n <div class=\"absolute bottom-0 right-0 w-6 h-6 bg-purple-500 rounded-full border-2 border-white\"></div>\n </div>\n <div class=\"ml-4\">\n <h3 class=\"text-xl font-bold text-gray-800\">Li Hua</h3>\n <p class=\"text-gray-600\">Technical Lead</p>\n </div>\n </div>\n \n <!-- Historical Comparison Chart -->\n <div class=\"mb-6\">\n <h4 class=\"text-gray-700 font-medium mb-3 text-center\">Historical Capability Trend</h4>\n <div class=\"relative h-40\">\n <svg viewBox=\"0 0 400 150\" class=\"w-full h-full\">\n <!-- Grid lines -->\n <line x1=\"40\" y1=\"20\" x2=\"40\" y2=\"130\" stroke=\"#e5e7eb\" stroke-width=\"1\" />\n <line x1=\"40\" y1=\"130\" x2=\"380\" y2=\"130\" stroke=\"#e5e7eb\" stroke-width=\"1\" />\n \n <!-- Scale -->\n <text x=\"30\" y=\"25\" text-anchor=\"end\" font-size=\"10\" fill=\"#6b7280\">100%</text>\n <text x=\"30\" y=\"75\" text-anchor=\"end\" font-size=\"10\" fill=\"#6b7280\">50%</text>\n <text x=\"30\" y=\"130\" text-anchor=\"end\" font-size=\"10\" fill=\"#6b7280\">0%</text>\n \n <!-- Timeline -->\n <text x=\"100\" y=\"145\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">3 Months Ago</text>\n <text x=\"200\" y=\"145\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">2 Months Ago</text>\n <text x=\"300\" y=\"145\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">Current</text>\n \n <!-- Project Completion History Line -->\n <polyline points=\"40,100 100,95 200,97 300,98\" fill=\"none\" stroke=\"#8b5cf6\" stroke-width=\"2\" stroke-dasharray=\"4\" />\n <polyline points=\"40,100 100,95 200,97 300,98\" fill=\"none\" stroke=\"#8b5cf6\" stroke-width=\"2\" />\n <text x=\"350\" y=\"95\" text-anchor=\"start\" font-size=\"10\" fill=\"#8b5cf6\">Project Completion</text>\n \n <!-- Problem Solving History Line -->\n <polyline points=\"40,70 100,80 200,85 300,85\" fill=\"none\" stroke=\"#ec4899\" stroke-width=\"2\" stroke-dasharray=\"4\" />\n <polyline points=\"40,70 100,80 200,85 300,95\" fill=\"none\" stroke=\"#ec4899\" stroke-width=\"2\" />\n <text x=\"350\" y=\"90\" text-anchor=\"start\" font-size=\"10\" fill=\"#ec4899\">Problem Solving</text>\n \n <!-- Current Data Points -->\n <circle cx=\"300\" cy=\"98\" r=\"4\" fill=\"#8b5cf6\" />\n <circle cx=\"300\" cy=\"98\" r=\"4\" fill=\"#8b5cf6\" />\n <circle cx=\"300\" cy=\"85\" r=\"4\" fill=\"#ec4899\" />\n <circle cx=\"300\" cy=\"95\" r=\"4\" fill=\"#ec4899\" />\n </svg>\n </div>\n <div class=\"mt-4 text-center text-sm text-gray-600\">\n Dashed: 3 months ago | Solid: Current\n </div>\n </div>\n \n <!-- Radar Chart -->\n <div class=\"mb-6\">\n <h4 class=\"text-gray-700 font-medium mb-3 text-center\">Capability Radar Comparison</h4>\n <div class=\"flex justify-center gap-6\">\n <!-- Historical Radar -->\n <div class=\"relative w-32 h-32 opacity-50\">\n <svg viewBox=\"0 0 100 100\" class=\"w-full h-full\">\n <polygon points=\"50,10 70,30 80,60 70,90 30,90 20,60 30,30\" fill=\"none\" stroke=\"#e5e7eb\" stroke-width=\"1\" />\n <polygon points=\"50,40 60,50 65,70 60,80 40,80 35,70 40,50\" fill=\"rgba(139, 92, 246, 0.1)\" stroke=\"#8b5cf6\" stroke-width=\"1\" />\n </svg>\n </div>\n <!-- Current Radar -->\n <div class=\"relative w-32 h-32\">\n <svg viewBox=\"0 0 100 100\" class=\"w-full h-full\">\n <polygon points=\"50,10 70,30 80,60 70,90 30,90 20,60 30,30\" fill=\"none\" stroke=\"#e5e7eb\" stroke-width=\"1\" />\n <polygon points=\"50,35 63,45 68,60 63,80 37,80 32,60 37,45\" fill=\"rgba(139, 92, 246, 0.2)\" stroke=\"#8b5cf6\" stroke-width=\"1.5\" />\n </svg>\n </div>\n </div>\n </div>\n \n <!-- Historical Notes -->\n <div class=\"bg-purple-50 rounded-lg p-4 mb-4\">\n <h4 class=\"text-purple-800 font-medium mb-2\">Historical Evaluation</h4>\n <p class=\"text-sm text-purple-700\">Problem solving ability increased by 25%, maintained high project completion rate, technical leadership further strengthened.</p>\n </div>\n </div>\n </div>\n </div>\n \n <!-- Comprehensive Comparison Area -->\n <div class=\"mt-12 bg-white rounded-xl shadow-md p-6\">\n <h4 class=\"text-gray-800 font-bold text-center mb-6\">Historical Capability Analysis</h4>\n \n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-8\">\n <!-- Growth Index Comparison -->\n <div>\n <h5 class=\"text-gray-700 font-medium mb-4 text-center\">Capability Growth Comparison</h5>\n <div class=\"flex items-end justify-center h-32 gap-10\">\n <div class=\"flex flex-col items-center\">\n <div class=\"text-sm text-gray-600 mb-1\">Zhang Ming</div>\n <div class=\"w-12 bg-blue-200 rounded-t-lg\" style=\"height: 100px\">\n <div class=\"bg-blue-600 rounded-t-lg w-full h-3/5\"></div>\n </div>\n <div class=\"text-sm text-blue-600 font-medium mt-1\">+22%</div>\n </div>\n \n <div class=\"flex flex-col items-center\">\n <div class=\"text-sm text-gray-600 mb-1\">Li Hua</div>\n <div class=\"w-12 bg-purple-200 rounded-t-lg\" style=\"height: 100px\">\n <div class=\"bg-purple-600 rounded-t-lg w-full h-2/5\"></div>\n </div>\n <div class=\"text-sm text-purple-600 font-medium mt-1\">+15%</div>\n </div>\n </div>\n </div>\n \n <!-- Historical Milestones -->\n <div>\n <h5 class=\"text-gray-700 font-medium mb-4 text-center\">Key Historical Milestones</h5>\n <div class=\"space-y-3\">\n <div class=\"flex items-start\">\n <div class=\"bg-blue-100 text-blue-800 rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1\">\n <span class=\"text-xs font-bold\">Z</span>\n </div>\n <div class=\"ml-3\">\n <p class=\"text-sm text-gray-800 font-medium\">Project A Refactoring</p>\n <p class=\"text-xs text-gray-500\">3 months ago | Efficiency improved 40%</p>\n </div>\n </div>\n \n <div class=\"flex items-start\">\n <div class=\"bg-purple-100 text-purple-800 rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1\">\n <span class=\"text-xs font-bold\">L</span>\n </div>\n <div class=\"ml-3\">\n <p class=\"text-sm text-gray-800 font-medium\">Technical Team Optimization</p>\n <p class=\"text-xs text-gray-500\">2 months ago | Problem solving +25%</p>\n </div>\n </div>\n \n <div class=\"flex items-start\">\n <div class=\"bg-blue-100 text-blue-800 rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1\">\n <span class=\"text-xs font-bold\">Z</span>\n </div>\n <div class=\"ml-3\">\n <p class=\"text-sm text-gray-800 font-medium\">Cross-department Collaboration</p>\n <p class=\"text-xs text-gray-500\">1 month ago | Collaboration score +35%</p>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n <div class=\"mt-8 text-center\">\n <button class=\"px-6 py-3 bg-gradient-to-r from-blue-500 to-purple-600 text-white font-medium rounded-lg hover:from-blue-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 transition-all duration-300 transform hover:-translate-y-1\">\n Export Historical Report\n </button>\n </div>\n </div>\n</div>"
},
"next": [
"Add data export",
"Implement filters",
"Add more metrics",
"Dark mode support",
"Performance charts"
],
"summary": "I've translated the personnel comparison dashboard into English while maintaining all original functionality and design. The translation covers all text elements including titles, labels, buttons, and content descriptions. Next steps could focus on enhancing data visualization capabilities."
}
```
推理
我们被要求将已有的custom-template组件(人员信息历史对比)翻译成英文。注意,我们只需要翻译文本内容,而保持HTML结构和类名不变。
需要翻译的部分包括:
- 标题、副标题
- 按钮文字
- 人员姓名、职位(注意:中文姓名通常保留拼音,但这里要求翻译成英文,所以我们将姓名转换为拼音,职位翻译为英文)
- 图表中的文字(如“历史能力变化趋势”、“能力雷达图对比”、“历史评价”等)
- 综合历史对比区域的标题、图表标签、里程碑事件等
注意:由于是演示,我们不会改变图片路径(头像)和SVG图形,只改变文本。
具体翻译如下:
主标题:人员信息历史对比 -> Personnel Historical Comparison
副标题:综合比较团队成员的历史表现与当前能力 -> Comprehensive comparison of team members' historical performance and current capabilities
按钮:
- 当前对比 -> Current Comparison
- 3个月历史 -> 3 Months History
- 6个月历史 -> 6 Months History
- 1年历史 -> 1 Year History
人员1:
姓名:张明 -> Zhang Ming (拼音)
职位:高级产品经理 -> Senior Product Manager
人员2:
姓名:李华 -> Li Hua (拼音)
职位:技术负责人 -> Technical Lead
图表标题:
- 历史能力变化趋势 -> Historical Capability Trend
- 能力雷达图对比 -> Capability Radar Chart Comparison
- 图表说明:虚线: 3个月前 | 实线: 当前 -> Dashed: 3 months ago | Solid: Current
- 项目完成率 -> Project Completion Rate
- 协作能力 -> Collaboration Ability
- 问题解决 -> Problem Solving
历史评价:
张明的评价:过去3个月中,项目完成率提升19%,协作能力显著增强,在跨部门项目中表现突出。
-> In the past 3 months, project completion rate increased by 19%, collaboration ability significantly enhanced, outstanding performance in cross-department projects.
李华的评价:问题解决能力显著提升25%,持续保持高项目完成率,技术领导力进一步增强。
-> Problem solving ability increased by 25%, maintaining high project completion rate, technical leadership further strengthened.
综合历史对比区域:
标题:历史能力对比分析 -> Historical Capability Comparative Analysis
子标题1:能力成长指数对比 -> Capability Growth Index Comparison
子标题2:关键历史里程碑 -> Key Historical Milestones
里程碑事件:
张明的事件1:完成A项目重构 -> Completed Project A Refactoring
描述:3个月前 | 效率提升40% -> 3 months ago | Efficiency improved by 40%
李华的事件1:技术团队优化 -> Technical Team Optimization
描述:2个月前 | 问题解决率提升25% -> 2 months ago | Problem solving rate increased by 25%
张明的事件2:跨部门协作机制 -> Cross-department Collaboration Mechanism
描述:1个月前 | 协作评分提升35% -> 1 month ago | Collaboration score increased by 35%
按钮:导出历史对比报告 -> Export Historical Comparison Report
注意:在翻译过程中,我们保留原有的HTML结构和类名,只替换文本节点中的内容。
由于原组件代码较长,我们将逐部分进行翻译,并确保只修改文本内容,不改变任何结构或类名。
开始翻译:
需要翻译的部分包括:
- 标题、副标题
- 按钮文字
- 人员姓名、职位(注意:中文姓名通常保留拼音,但这里要求翻译成英文,所以我们将姓名转换为拼音,职位翻译为英文)
- 图表中的文字(如“历史能力变化趋势”、“能力雷达图对比”、“历史评价”等)
- 综合历史对比区域的标题、图表标签、里程碑事件等
注意:由于是演示,我们不会改变图片路径(头像)和SVG图形,只改变文本。
具体翻译如下:
主标题:人员信息历史对比 -> Personnel Historical Comparison
副标题:综合比较团队成员的历史表现与当前能力 -> Comprehensive comparison of team members' historical performance and current capabilities
按钮:
- 当前对比 -> Current Comparison
- 3个月历史 -> 3 Months History
- 6个月历史 -> 6 Months History
- 1年历史 -> 1 Year History
人员1:
姓名:张明 -> Zhang Ming (拼音)
职位:高级产品经理 -> Senior Product Manager
人员2:
姓名:李华 -> Li Hua (拼音)
职位:技术负责人 -> Technical Lead
图表标题:
- 历史能力变化趋势 -> Historical Capability Trend
- 能力雷达图对比 -> Capability Radar Chart Comparison
- 图表说明:虚线: 3个月前 | 实线: 当前 -> Dashed: 3 months ago | Solid: Current
- 项目完成率 -> Project Completion Rate
- 协作能力 -> Collaboration Ability
- 问题解决 -> Problem Solving
历史评价:
张明的评价:过去3个月中,项目完成率提升19%,协作能力显著增强,在跨部门项目中表现突出。
-> In the past 3 months, project completion rate increased by 19%, collaboration ability significantly enhanced, outstanding performance in cross-department projects.
李华的评价:问题解决能力显著提升25%,持续保持高项目完成率,技术领导力进一步增强。
-> Problem solving ability increased by 25%, maintaining high project completion rate, technical leadership further strengthened.
综合历史对比区域:
标题:历史能力对比分析 -> Historical Capability Comparative Analysis
子标题1:能力成长指数对比 -> Capability Growth Index Comparison
子标题2:关键历史里程碑 -> Key Historical Milestones
里程碑事件:
张明的事件1:完成A项目重构 -> Completed Project A Refactoring
描述:3个月前 | 效率提升40% -> 3 months ago | Efficiency improved by 40%
李华的事件1:技术团队优化 -> Technical Team Optimization
描述:2个月前 | 问题解决率提升25% -> 2 months ago | Problem solving rate increased by 25%
张明的事件2:跨部门协作机制 -> Cross-department Collaboration Mechanism
描述:1个月前 | 协作评分提升35% -> 1 month ago | Collaboration score increased by 35%
按钮:导出历史对比报告 -> Export Historical Comparison Report
注意:在翻译过程中,我们保留原有的HTML结构和类名,只替换文本节点中的内容。
由于原组件代码较长,我们将逐部分进行翻译,并确保只修改文本内容,不改变任何结构或类名。
开始翻译:
角色
assistant
content