Skip to content

Commit 4dcf124

Browse files
authored
Add zh-CN translation based on ja.js
1 parent 25fe1c9 commit 4dcf124

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

lib/locales/zh-cn.js

Lines changed: 61 additions & 1 deletion
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': '矩形选择', // components/modebar/buttons.js:103
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': '双击图例', // components/legend/handle_click.js:90
26+
'Double-click to zoom back out': '双击返回缩小显示', // plots/cartesian/dragbox.js:299
27+
'Download plot as a png': '下载图表为 PNG', // components/modebar/buttons.js:52
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': '扩大', // components/modebar/buttons.js:94
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': '重置镜头到默认', // components/modebar/buttons.js:314
38+
'Reset camera to last save': '重置镜头到最后一次保存', // components/modebar/buttons.js:322
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:': '关:', // traces/ohlc/transform.js:139
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:': 'Fence 的下限:', // traces/box/calc.js:134
57+
'upper fence:': 'Fence 的上限:', // traces/box/calc.js:135
58+
'max:': '最大:', // traces/box/calc.js:132
59+
'mean ± σ:': '平均 ± σ:', // traces/box/calc.js:133
60+
'mean:': '平均:', // traces/box/calc.js:133
61+
'median:': '中位:', // traces/box/calc.js:128
62+
'min:': '最小:', // traces/box/calc.js:129
63+
'Turntable rotation': '按轴旋转:', // components/modebar/buttons.js:288
64+
'Toggle Spike Lines': '是否显示 Spike Lines', // components/modebar/buttons.js:548
65+
'open:': '开:', // traces/ohlc/transform.js:136
66+
'high:': '高:', // traces/ohlc/transform.js:137
67+
'low:': '低:', // traces/ohlc/transform.js:138
68+
'Toggle show closest data on hover': '悬停时是否显示最近的数据', // components/modebar/buttons.js:353
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)