Skip to content

Commit eb40480

Browse files
committed
Add zh-CN for localization
1 parent a120375 commit eb40480

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/locale/zh-CN.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import "locale";
2+
3+
var d3_locale_zhCN = d3.locale({
4+
decimal: ".",
5+
thousands: ",",
6+
grouping: [3],
7+
currency: ["¥", ""],
8+
dateTime: "%a %b %e %X %Y",
9+
date: "%Y/%-m/%-d",
10+
time: "%H:%M:%S",
11+
periods: ["上午", "下午"],
12+
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
13+
shortDays: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
14+
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
15+
shortMonths: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]
16+
});

0 commit comments

Comments
 (0)