Skip to content

Commit 7855ede

Browse files
authored
Merge pull request #4276 from boltomli/master
Add initial zh-CN translation based on ja.js dictionary strings
2 parents 990a960 + 819b5cc commit 7855ede

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

lib/locales/zh-cn.js

+61-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,67 @@
1111
module.exports = {
1212
moduleType: 'locale',
1313
name: 'zh-CN',
14-
dictionary: {},
14+
dictionary: {
15+
'Autoscale': '自动缩放', // components/modebar/buttons.js:139
16+
'Box Select': '矩形框选',
17+
'Click to enter Colorscale title': '点击输入色阶的标题', // plots/plots.js:437
18+
'Click to enter Component A title': '点击输入组件A的标题', // plots/ternary/ternary.js:386
19+
'Click to enter Component B title': '点击输入组件B的标题', // plots/ternary/ternary.js:400
20+
'Click to enter Component C title': '点击输入组件C的标题', // plots/ternary/ternary.js:411
21+
'Click to enter Plot title': '点击输入图表的标题', // plot_api/plot_api.js:579
22+
'Click to enter X axis title': '点击输入X轴的标题', // plots/plots.js:435
23+
'Click to enter Y axis title': '点击输入Y轴的标题', // plots/plots.js:436
24+
'Compare data on hover': '悬停时比较数据', // components/modebar/buttons.js:167
25+
'Double-click on legend to isolate one trace': '双击图例来突显对应轨迹',
26+
'Double-click to zoom back out': '双击返回缩小显示', // plots/cartesian/dragbox.js:299
27+
'Download plot as a png': '下载图表为PNG格式',
28+
'Download plot': '下载图表', // components/modebar/buttons.js:53
29+
'Edit in Chart Studio': '在Chart Studio中编辑', // components/modebar/buttons.js:76
30+
'IE only supports svg. Changing format to svg.': 'IE只支持SVG。转换格式为SVG。', // components/modebar/buttons.js:60
31+
'Lasso Select': '套索选择', // components/modebar/buttons.js:112
32+
'Orbital rotation': '轨道旋转', // components/modebar/buttons.js:279
33+
'Pan': '平移',
34+
'Produced with Plotly': '由Plotly生成', // components/modebar/modebar.js:256
35+
'Reset': '重置', // components/modebar/buttons.js:432
36+
'Reset axes': '重置轴', // components/modebar/buttons.js:148
37+
'Reset camera to default': '重置镜头视角为默认状态',
38+
'Reset camera to last save': '重置镜头视角为上次保存状态',
39+
'Reset view': '重置视图', // components/modebar/buttons.js:583
40+
'Reset views': '重置视图', // components/modebar/buttons.js:529
41+
'Show closest data on hover': '悬停时显示最近的数据', // components/modebar/buttons.js:157
42+
'Snapshot succeeded': '生成快照成功', // components/modebar/buttons.js:66
43+
'Sorry, there was a problem downloading your snapshot!': '抱歉,下载快照出现问题!', // components/modebar/buttons.js:69
44+
'Taking snapshot - this may take a few seconds': '正在生成快照 - 可能需要几秒钟', // components/modebar/buttons.js:57
45+
'Zoom': '缩放', // components/modebar/buttons.js:85
46+
'Zoom in': '放大', // components/modebar/buttons.js:121
47+
'Zoom out': '缩小', // components/modebar/buttons.js:130
48+
'close:': '关闭:',
49+
'trace': '踪迹:', // plots/plots.js:439
50+
'lat:': '纬度:', // traces/scattergeo/calc.js:48
51+
'lon:': '经度:', // traces/scattergeo/calc.js:49
52+
'q1:': '第一四分位数:', // traces/box/calc.js:130
53+
'q3:': '第三四分位数:', // traces/box/calc.js:131
54+
'source:': '源:', // traces/sankey/plot.js:140
55+
'target:': '目标:', // traces/sankey/plot.js:141
56+
'lower fence:': '内侧栏(lower fence):',
57+
'upper fence:': '外侧栏(upper fence):',
58+
'max:': '最大值:',
59+
'mean ± σ:': '平均数 ± 标准差σ:',
60+
'mean:': '平均数:',
61+
'median:': '中位数:',
62+
'min:': '最小值:',
63+
'Turntable rotation': '旋转转盘:',
64+
'Toggle Spike Lines': '切换显示数据点辅助线(Spike Lines)',
65+
'open:': '打开:',
66+
'high:': '高:', // traces/ohlc/transform.js:137
67+
'low:': '低:', // traces/ohlc/transform.js:138
68+
'Toggle show closest data on hover': '切换悬停时显示最近的数据点',
69+
'incoming flow count:': '流入数量:', // traces/sankey/plot.js:142
70+
'outgoing flow count:': '流出数量:', // traces/sankey/plot.js:143
71+
'kde:': 'kde:', // traces/violin/calc.js:73
72+
'Click to enter radial axis title': '点击输入径向轴标题',
73+
'new text': '新建文本'
74+
},
1575
format: {
1676
days: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
1777
shortDays: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],

0 commit comments

Comments
 (0)