blob: 58c1db15b278efec4a0d1a6ddebd8f37939f0f5f [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?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 * - Fidel Pita
16 * - JD Isaacks
17 * - Diego Vilariño
18 * - Sebastian Thierer
19 */
20return [
21 'year' => ':count ano|:count anos',
22 'a_year' => 'un ano|:count anos',
23 'y' => ':count a.',
24 'month' => ':count mes|:count meses',
25 'a_month' => 'un mes|:count meses',
26 'm' => ':count mes.',
27 'week' => ':count semana|:count semanas',
28 'a_week' => 'unha semana|:count semanas',
29 'w' => ':count sem.',
30 'day' => ':count día|:count días',
31 'a_day' => 'un día|:count días',
32 'd' => ':count d.',
33 'hour' => ':count hora|:count horas',
34 'a_hour' => 'unha hora|:count horas',
35 'h' => ':count h.',
36 'minute' => ':count minuto|:count minutos',
37 'a_minute' => 'un minuto|:count minutos',
38 'min' => ':count min.',
39 'second' => ':count segundo|:count segundos',
40 'a_second' => 'uns segundos|:count segundos',
41 's' => ':count seg.',
42 'ago' => 'hai :time',
43 'from_now' => function ($time) {
44 if (str_starts_with($time, 'un')) {
45 return "n$time";
46 }
47
48 return "en $time";
49 },
50 'diff_now' => 'agora',
51 'diff_today' => 'hoxe',
52 'diff_today_regexp' => 'hoxe(?:\\s+ás)?',
53 'diff_yesterday' => 'onte',
54 'diff_yesterday_regexp' => 'onte(?:\\s+á)?',
55 'diff_tomorrow' => 'mañá',
56 'diff_tomorrow_regexp' => 'mañá(?:\\s+ás)?',
57 'after' => ':time despois',
58 'before' => ':time antes',
59 'formats' => [
60 'LT' => 'H:mm',
61 'LTS' => 'H:mm:ss',
62 'L' => 'DD/MM/YYYY',
63 'LL' => 'D [de] MMMM [de] YYYY',
64 'LLL' => 'D [de] MMMM [de] YYYY H:mm',
65 'LLLL' => 'dddd, D [de] MMMM [de] YYYY H:mm',
66 ],
67 'calendar' => [
68 'sameDay' => function (\Carbon\CarbonInterface $current) {
69 return '[hoxe '.($current->hour !== 1 ? 'ás' : 'á').'] LT';
70 },
71 'nextDay' => function (\Carbon\CarbonInterface $current) {
72 return '[mañá '.($current->hour !== 1 ? 'ás' : 'á').'] LT';
73 },
74 'nextWeek' => function (\Carbon\CarbonInterface $current) {
75 return 'dddd ['.($current->hour !== 1 ? 'ás' : 'á').'] LT';
76 },
77 'lastDay' => function (\Carbon\CarbonInterface $current) {
78 return '[onte '.($current->hour !== 1 ? 'á' : 'a').'] LT';
79 },
80 'lastWeek' => function (\Carbon\CarbonInterface $current) {
81 return '[o] dddd [pasado '.($current->hour !== 1 ? 'ás' : 'á').'] LT';
82 },
83 'sameElse' => 'L',
84 ],
85 'ordinal' => ':numberº',
86 'months' => ['xaneiro', 'febreiro', 'marzo', 'abril', 'maio', 'xuño', 'xullo', 'agosto', 'setembro', 'outubro', 'novembro', 'decembro'],
87 'months_short' => ['xan.', 'feb.', 'mar.', 'abr.', 'mai.', 'xuñ.', 'xul.', 'ago.', 'set.', 'out.', 'nov.', 'dec.'],
88 'weekdays' => ['domingo', 'luns', 'martes', 'mércores', 'xoves', 'venres', 'sábado'],
89 'weekdays_short' => ['dom.', 'lun.', 'mar.', 'mér.', 'xov.', 'ven.', 'sáb.'],
90 'weekdays_min' => ['do', 'lu', 'ma', 'mé', 'xo', 've', 'sá'],
91 'first_day_of_week' => 1,
92 'day_of_first_week_of_year' => 4,
93 'list' => [', ', ' e '],
94 'meridiem' => ['a.m.', 'p.m.'],
95];