Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 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 | * - Serhan Apaydın |
| 16 | * - JD Isaacks |
| 17 | * - Malinda Weerasinghe (MalindaWMD) |
| 18 | */ |
| 19 | return [ |
| 20 | 'year' => '{1}වසර 1|වසර :count', |
| 21 | 'a_year' => '{1}වසරක්|වසර :count', |
| 22 | 'month' => '{1}මාස 1|මාස :count', |
| 23 | 'a_month' => '{1}මාසය|මාස :count', |
| 24 | 'week' => '{1}සති 1|සති :count', |
| 25 | 'a_week' => '{1}සතියක්|සති :count', |
| 26 | 'day' => '{1}දින 1|දින :count', |
| 27 | 'a_day' => '{1}දිනක්|දින :count', |
| 28 | 'hour' => '{1}පැය 1|පැය :count', |
| 29 | 'a_hour' => '{1}පැයක්|පැය :count', |
| 30 | 'minute' => '{1}මිනිත්තු 1|මිනිත්තු :count', |
| 31 | 'a_minute' => '{1}මිනිත්තුවක්|මිනිත්තු :count', |
| 32 | 'second' => '{1}තත්පර 1|තත්පර :count', |
| 33 | 'a_second' => '{1}තත්පර කිහිපයකට|තත්පර :count', |
| 34 | 'ago' => ':time කට පෙර', |
| 35 | 'from_now' => function ($time) { |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 36 | if (preg_match('/දින \d/u', $time)) { |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 37 | return $time.' න්'; |
| 38 | } |
| 39 | |
| 40 | return $time.' කින්'; |
| 41 | }, |
| 42 | 'before' => ':time කට පෙර', |
| 43 | 'after' => function ($time) { |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 44 | if (preg_match('/දින \d/u', $time)) { |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 45 | return $time.' න්'; |
| 46 | } |
| 47 | |
| 48 | return $time.' කින්'; |
| 49 | }, |
| 50 | 'diff_now' => 'දැන්', |
| 51 | 'diff_today' => 'අද', |
| 52 | 'diff_yesterday' => 'ඊයේ', |
| 53 | 'diff_tomorrow' => 'හෙට', |
| 54 | 'formats' => [ |
| 55 | 'LT' => 'a h:mm', |
| 56 | 'LTS' => 'a h:mm:ss', |
| 57 | 'L' => 'YYYY/MM/DD', |
| 58 | 'LL' => 'YYYY MMMM D', |
| 59 | 'LLL' => 'YYYY MMMM D, a h:mm', |
| 60 | 'LLLL' => 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', |
| 61 | ], |
| 62 | 'calendar' => [ |
| 63 | 'sameDay' => '[අද] LT[ට]', |
| 64 | 'nextDay' => '[හෙට] LT[ට]', |
| 65 | 'nextWeek' => 'dddd LT[ට]', |
| 66 | 'lastDay' => '[ඊයේ] LT[ට]', |
| 67 | 'lastWeek' => '[පසුගිය] dddd LT[ට]', |
| 68 | 'sameElse' => 'L', |
| 69 | ], |
| 70 | 'ordinal' => ':number වැනි', |
| 71 | 'meridiem' => ['පෙර වරු', 'පස් වරු', 'පෙ.ව.', 'ප.ව.'], |
| 72 | 'months' => ['ජනවාරි', 'පෙබරවාරි', 'මාර්තු', 'අප්රේල්', 'මැයි', 'ජූනි', 'ජූලි', 'අගෝස්තු', 'සැප්තැම්බර්', 'ඔක්තෝබර්', 'නොවැම්බර්', 'දෙසැම්බර්'], |
| 73 | 'months_short' => ['ජන', 'පෙබ', 'මාර්', 'අප්', 'මැයි', 'ජූනි', 'ජූලි', 'අගෝ', 'සැප්', 'ඔක්', 'නොවැ', 'දෙසැ'], |
| 74 | 'weekdays' => ['ඉරිදා', 'සඳුදා', 'අඟහරුවාදා', 'බදාදා', 'බ්රහස්පතින්දා', 'සිකුරාදා', 'සෙනසුරාදා'], |
| 75 | 'weekdays_short' => ['ඉරි', 'සඳු', 'අඟ', 'බදා', 'බ්රහ', 'සිකු', 'සෙන'], |
| 76 | 'weekdays_min' => ['ඉ', 'ස', 'අ', 'බ', 'බ්ර', 'සි', 'සෙ'], |
| 77 | 'first_day_of_week' => 1, |
| 78 | ]; |