Skip to content

Commit e0cd0dd

Browse files
committed
feat: add zh-CN support
1 parent 263e524 commit e0cd0dd

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

lib/src/locales/zh_CN.dart

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import '../localedata.dart';
2+
import '../identifier_position.dart';
3+
4+
class LocaleZhCN extends ILocaleData {
5+
final String _localeString;
6+
String get localeString => _localeString;
7+
8+
LocaleEn([this._localeString = "zh-CN"]);
9+
10+
String get seconds => '几秒钟';
11+
12+
String get aMinute => '一分钟';
13+
String get minutes => '%i分钟';
14+
15+
String get anHour => '一小时';
16+
String get hours => '%i小时';
17+
18+
String get aDay => '一天';
19+
String get days => '%i天';
20+
21+
String get aMonth => '一个月';
22+
String get months => '%i月';
23+
24+
String get aYear => '一年';
25+
String get years => '%i年';
26+
27+
String get futureIdentifier => '之后';
28+
String get pastIdentifier => '之前';
29+
30+
IdentifierPosition get futurePosition => IdentifierPosition.prepend;
31+
IdentifierPosition get pastPosition => IdentifierPosition.append;
32+
}

0 commit comments

Comments
 (0)