1
<?php
2

3
/**
4
 * This file is part of the Carbon package.
5
 *
6
 * (c) Brian Nesbitt <brian@nesbot.com>
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
 * - François B
15
 * - JD Isaacks
16
 * - Daniel Monaghan
17
 */
18
return [
19 1
    'year' => '{1}blwyddyn|]1,Inf[:count flynedd',
20 1
    'y' => ':countbl',
21 1
    'month' => '{1}mis|]1,Inf[:count mis',
22 1
    'm' => ':countmi',
23 1
    'week' => ':count wythnos',
24 1
    'w' => ':countw',
25 1
    'day' => '{1}diwrnod|]1,Inf[:count diwrnod',
26 1
    'd' => ':countd',
27 1
    'hour' => '{1}awr|]1,Inf[:count awr',
28 1
    'h' => ':counth',
29 1
    'minute' => '{1}munud|]1,Inf[:count munud',
30 1
    'min' => ':countm',
31 1
    'second' => '{1}ychydig eiliadau|]1,Inf[:count eiliad',
32 1
    's' => ':counts',
33 1
    'ago' => ':time yn ôl',
34 1
    'from_now' => 'mewn :time',
35 1
    'after' => ':time ar ôl',
36 1
    'before' => ':time o\'r blaen',
37 1
    'diff_now' => 'nawr',
38 1
    'diff_today' => 'Heddiw',
39 1
    'diff_today_regexp' => 'Heddiw(?:\\s+am)?',
40 1
    'diff_yesterday' => 'ddoe',
41 1
    'diff_yesterday_regexp' => 'Ddoe(?:\\s+am)?',
42 1
    'diff_tomorrow' => 'yfory',
43 1
    'diff_tomorrow_regexp' => 'Yfory(?:\\s+am)?',
44
    'formats' => [
45
        'LT' => 'HH:mm',
46
        'LTS' => 'HH:mm:ss',
47
        'L' => 'DD/MM/YYYY',
48
        'LL' => 'D MMMM YYYY',
49
        'LLL' => 'D MMMM YYYY HH:mm',
50
        'LLLL' => 'dddd, D MMMM YYYY HH:mm',
51
    ],
52
    'calendar' => [
53
        'sameDay' => '[Heddiw am] LT',
54
        'nextDay' => '[Yfory am] LT',
55
        'nextWeek' => 'dddd [am] LT',
56
        'lastDay' => '[Ddoe am] LT',
57
        'lastWeek' => 'dddd [diwethaf am] LT',
58
        'sameElse' => 'L',
59
    ],
60
    'ordinal' => function ($number) {
61
        return $number.(
62 1
            $number > 20
63 1
                ? (\in_array($number, [40, 50, 60, 80, 100]) ? 'fed' : 'ain')
64
                : ([
65
                    '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
66
                    'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed', // 11eg to 20fed
67 1
                ])[$number] ?? ''
68
        );
69 1
    },
70
    'months' => ['Ionawr', 'Chwefror', 'Mawrth', 'Ebrill', 'Mai', 'Mehefin', 'Gorffennaf', 'Awst', 'Medi', 'Hydref', 'Tachwedd', 'Rhagfyr'],
71
    'months_short' => ['Ion', 'Chwe', 'Maw', 'Ebr', 'Mai', 'Meh', 'Gor', 'Aws', 'Med', 'Hyd', 'Tach', 'Rhag'],
72
    'weekdays' => ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'],
73
    'weekdays_short' => ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'],
74
    'weekdays_min' => ['Su', 'Ll', 'Ma', 'Me', 'Ia', 'Gw', 'Sa'],
75 1
    'first_day_of_week' => 1,
76 1
    'day_of_first_week_of_year' => 4,
77
    'list' => [', ', ' a '],
78
    'meridiem' => ['yb', 'yh'],
79
];

Read our documentation on viewing source code .

Loading