Skip to content

Commit 2eed8ae

Browse files
committed
Merge pull request #174 from sxd1140/master
Added Chinese language pack
2 parents e98cd8f + 233d7b0 commit 2eed8ae

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/flipclock/js/lang/zh-cn.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
(function($) {
2+
3+
/**
4+
* FlipClock Chinese Language Pack
5+
*
6+
* This class will used to translate tokens into the Chinese language.
7+
*
8+
*/
9+
10+
FlipClock.Lang.Chinese = {
11+
12+
'years' : '年',
13+
'months' : '月',
14+
'days' : '日',
15+
'hours' : '时',
16+
'minutes' : '分',
17+
'seconds' : '秒'
18+
19+
};
20+
21+
/* Create various aliases for convenience */
22+
23+
FlipClock.Lang['zh'] = FlipClock.Lang.Chinese;
24+
FlipClock.Lang['zh-cn'] = FlipClock.Lang.Chinese;
25+
FlipClock.Lang['chinese'] = FlipClock.Lang.Chinese;
26+
27+
}(jQuery));

0 commit comments

Comments
 (0)