8000 Add Chinese language. Close #13 · wcoder/life-calendar@cfbb857 · GitHub
[go: up one dir, main page]

Skip to content

Commit cfbb857

Browse files
committed
Add Chinese language. Close #13
1 parent 6a35db4 commit cfbb857

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<select class="form-control" id="lang">
4848
<option value="0">Русский</option>
4949
<option value="1">English</option>
50+
<option value="2">中国人</option>
5051
</select>
5152
</div>
5253

src/js/app.js

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,40 @@
110110
left_text: '← Age',
111111
top_text: 'Week of the Year →'
112112
}
113-
}
113+
},
114+
{
115+
months: [
116+
'1月',
117+
'2曰',
118+
'3月',
119+
'4月',
120+
'5月',
121+
'6月',
122+
'7月',
123+
'8月',
124+
'9月',
125+
'10月',
126+
'11月',
127+
'12月'
128+
],
129+
settings: {
130+
lang_set_birthday: "设置您的生日:",
131+
dp_day: "日",
132+
dp_month: "月",
133+
dp_year: "年",
134+
lang_set_theme: "选择一个主题:",
135+
lang_select_lang: "选择一个语言:",
136+
lang_save_print: "保存或打印:",
137+
lang_save_jpg: "JPG",
138+
lang_save_pdf: "PDF",
139+
lang_print: "打印",
140+
},
141+
calendar: {
142+
title: '人生日历',
143+
left_text: '← 年龄',
144+
top_text: '一年中的第几周 →'
145+
}
146+
},
114147
];
115148

116149

0 commit comments

Comments
 (0)
0