Debian Codegraph @

lib/3rdParty/composer/nesbot/carbon/src/Carbon/Lang/zh_Hans.php

raw symbols SCIP
1 <?php
2
3 /**
4 * This file is part of the Carbon package.
5 *
6 * (c) Brian Nesbitt <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 /*
13 * Authors:
14 * - monkeycon
15 * - François B
16 * - Jason Katz-Brown
17 * - Konstantin Konev
18 * - Chris Lam
19 * - Serhan Apaydın
20 * - Gary Lo
21 * - JD Isaacks
22 * - Chris Hemp
23 * - shankesgk2
24 * - Daniel Cheung (danvim)
25 */
26 return [
27 'year' => ':count:optional-space年',
28 'y' => ':count:optional-space年',
29 'month' => ':count:optional-space个月',
30 'm' => ':count:optional-space个月',
31 'week' => ':count:optional-space周',
32 'w' => ':count:optional-space周',
33 'day' => ':count:optional-space天',
34 'd' => ':count:optional-space天',
35 'hour' => ':count:optional-space小时',
36 'h' => ':count:optional-space小时',
37 'minute' => ':count:optional-space分钟',
38 'min' => ':count:optional-space分钟',
39 'second' => ':count:optional-space秒',
40 'a_second' => '{1}几秒|[-Inf,Inf]:count:optional-space秒',
41 's' => ':count:optional-space秒',
42 'ago' => ':time前',
43 'from_now' => ':time后',
44 'after' => ':time后',
45 'before' => ':time前',
46 'diff_now' => '现在',
47 'diff_today' => '今天',
48 'diff_yesterday' => '昨天',
49 'diff_tomorrow' => '明天',
50 'formats' => [
51 'LT' => 'HH:mm',
52 'LTS' => 'HH:mm:ss',
53 'L' => 'YYYY/MM/DD',
54 'LL' => 'YYYY年M月D日',
55 'LLL' => 'YYYY年M月D日 HH:mm',
56 'LLLL' => 'YYYY年M月D日dddd HH:mm',
57 ],
58 'calendar' => [
59 'sameDay' => '[今天]LT',
60 'nextDay' => '[明天]LT',
61 'nextWeek' => '[下]ddddLT',
62 'lastDay' => '[昨天]LT',
63 'lastWeek' => '[上]ddddLT',
64 'sameElse' => 'L',
65 ],
66 'ordinal' => static function ($number, $period) {
67 return match ($period) {
68 'd', 'D', 'DDD' => $number.'日',
69 'M' => $number.'月',
70 'w', 'W' => $number.'周',
71 default => $number,
72 };
73 },
74 'meridiem' => static function ($hour, $minute) {
75 $time = $hour * 100 + $minute;
76 if ($time < 600) {
77 return '凌晨';
78 }
79 if ($time < 900) {
80 return '早上';
81 }
82 if ($time < 1130) {
83 return '上午';
84 }
85 if ($time < 1230) {
86 return '中午';
87 }
88 if ($time < 1800) {
89 return '下午';
90 }
91
92 return '晚上';
93 },
94 'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
95 'months_short' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
96 'weekdays' => ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
97 'weekdays_short' => ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
98 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'],
99 'first_day_of_week' => 1,
100 'day_of_first_week_of_year' => 4,
101 'list' => '',
102 ];