PHP Classes

File: vendor/nesbot/carbon/src/Carbon/Lang/lv.php

Recommend this page to a friend!
  Packages of OmDiaries   Laravel AI Email Assistant   vendor/nesbot/carbon/src/Carbon/Lang/lv.php   Download  
File: vendor/nesbot/carbon/src/Carbon/Lang/lv.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel AI Email Assistant
Generate an email message with the OpenAI GPT API
Author: By
Last change:
Date: 5 months ago
Size: 7,280 bytes
 

Contents

Class file image Download
<?php

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <brian@nesbot.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use Carbon\CarbonInterface;

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <brian@nesbot.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/*
 * Authors:
 * - Philippe Vaucher
 * - pirminis
 * - Tsutomu Kuroda
 * - tjku
 * - Andris Z??eris
 * - Max Melentiev
 * - Edgars Beigarts
 * - Juanito Fatas
 * - Vitauts Sto?ka
 * - Akira Matsuda
 * - Christopher Dell
 * - Enrique Vidal
 * - Simone Carletti
 * - Aaron Patterson
 * - Kaspars Bankovskis
 * - Nicolás Hock Isaza
 * - Viesturs Kavacs (Kavacky)
 * - zakse
 * - Janis Eglitis (janiseglitis)
 * - Guntars
 * - Juris Sudmalis
 */
$daysOfWeek = ['sv?tdiena', 'pirmdiena', 'otrdiena', 'tre?diena', 'ceturtdiena', 'piektdiena', 'sestdiena'];
$daysOfWeekLocativum = ['sv?tdien', 'pirmdien', 'otrdien', 'tre?dien', 'ceturtdien', 'piektdien', 'sestdien'];

$transformDiff = function ($input) {
    return
strtr($input, [
       
// Nominative => "pirms/p?c" Dative
       
'gads' => 'gada',
       
'gadi' => 'gadiem',
       
'gadu' => 'gadiem',
       
'm?nesis' => 'm?ne?a',
       
'm?ne?i' => 'm?ne?iem',
       
'm?ne?u' => 'm?ne?iem',
       
'ned??a' => 'ned??as',
       
'ned??as' => 'ned???m',
       
'ned??u' => 'ned???m',
       
'diena' => 'dienas',
       
'dienas' => 'dien?m',
       
'dienu' => 'dien?m',
       
'stunda' => 'stundas',
       
'stundas' => 'stund?m',
       
'stundu' => 'stund?m',
       
'min?te' => 'min?tes',
       
'min?tes' => 'min?t?m',
       
'min??u' => 'min?t?m',
       
'sekunde' => 'sekundes',
       
'sekundes' => 'sekund?m',
       
'sekun?u' => 'sekund?m',
    ]);
};

return [
   
'ago' => function ($time) use ($transformDiff) {
        return
'pirms '.$transformDiff($time);
    },
   
'from_now' => function ($time) use ($transformDiff) {
        return
'p?c '.$transformDiff($time);
    },

   
'year' => '0 gadu|:count gads|:count gadi',
   
'y' => ':count g.',
   
'a_year' => '{1}gads|0 gadu|:count gads|:count gadi',
   
'month' => '0 m?ne?u|:count m?nesis|:count m?ne?i',
   
'm' => ':count m?n.',
   
'a_month' => '{1}m?nesis|0 m?ne?u|:count m?nesis|:count m?ne?i',
   
'week' => '0 ned??u|:count ned??a|:count ned??as',
   
'w' => ':count ned.',
   
'a_week' => '{1}ned??a|0 ned??u|:count ned??a|:count ned??as',
   
'day' => '0 dienu|:count diena|:count dienas',
   
'd' => ':count d.',
   
'a_day' => '{1}diena|0 dienu|:count diena|:count dienas',
   
'hour' => '0 stundu|:count stunda|:count stundas',
   
'h' => ':count st.',
   
'a_hour' => '{1}stunda|0 stundu|:count stunda|:count stundas',
   
'minute' => '0 min??u|:count min?te|:count min?tes',
   
'min' => ':count min.',
   
'a_minute' => '{1}min?te|0 min??u|:count min?te|:count min?tes',
   
'second' => '0 sekun?u|:count sekunde|:count sekundes',
   
's' => ':count sek.',
   
'a_second' => '{1}sekunde|0 sekun?u|:count sekunde|:count sekundes',

   
'after' => ':time v?l?k',
   
'year_after' => '0 gadus|:count gadu|:count gadus',
   
'a_year_after' => '{1}gadu|0 gadus|:count gadu|:count gadus',
   
'month_after' => '0 m?ne?us|:count m?nesi|:count m?ne?us',
   
'a_month_after' => '{1}m?nesi|0 m?ne?us|:count m?nesi|:count m?ne?us',
   
'week_after' => '0 ned??as|:count ned??u|:count ned??as',
   
'a_week_after' => '{1}ned??u|0 ned??as|:count ned??u|:count ned??as',
   
'day_after' => '0 dienas|:count dienu|:count dienas',
   
'a_day_after' => '{1}dienu|0 dienas|:count dienu|:count dienas',
   
'hour_after' => '0 stundas|:count stundu|:count stundas',
   
'a_hour_after' => '{1}stundu|0 stundas|:count stundu|:count stundas',
   
'minute_after' => '0 min?tes|:count min?ti|:count min?tes',
   
'a_minute_after' => '{1}min?ti|0 min?tes|:count min?ti|:count min?tes',
   
'second_after' => '0 sekundes|:count sekundi|:count sekundes',
   
'a_second_after' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',

   
'before' => ':time agr?k',
   
'year_before' => '0 gadus|:count gadu|:count gadus',
   
'a_year_before' => '{1}gadu|0 gadus|:count gadu|:count gadus',
   
'month_before' => '0 m?ne?us|:count m?nesi|:count m?ne?us',
   
'a_month_before' => '{1}m?nesi|0 m?ne?us|:count m?nesi|:count m?ne?us',
   
'week_before' => '0 ned??as|:count ned??u|:count ned??as',
   
'a_week_before' => '{1}ned??u|0 ned??as|:count ned??u|:count ned??as',
   
'day_before' => '0 dienas|:count dienu|:count dienas',
   
'a_day_before' => '{1}dienu|0 dienas|:count dienu|:count dienas',
   
'hour_before' => '0 stundas|:count stundu|:count stundas',
   
'a_hour_before' => '{1}stundu|0 stundas|:count stundu|:count stundas',
   
'minute_before' => '0 min?tes|:count min?ti|:count min?tes',
   
'a_minute_before' => '{1}min?ti|0 min?tes|:count min?ti|:count min?tes',
   
'second_before' => '0 sekundes|:count sekundi|:count sekundes',
   
'a_second_before' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',

   
'first_day_of_week' => 1,
   
'day_of_first_week_of_year' => 4,
   
'list' => [', ', ' un '],

   
'diff_now' => 'tagad',
   
'diff_today' => '?odien',
   
'diff_yesterday' => 'vakar',
   
'diff_before_yesterday' => 'aizvakar',
   
'diff_tomorrow' => 'r?t',
   
'diff_after_tomorrow' => 'par?t',

   
'formats' => [
       
'LT' => 'HH:mm',
       
'LTS' => 'HH:mm:ss',
       
'L' => 'DD.MM.YYYY.',
       
'LL' => 'YYYY. [gada] D. MMMM',
       
'LLL' => 'DD.MM.YYYY., HH:mm',
       
'LLLL' => 'YYYY. [gada] D. MMMM, HH:mm',
    ],

   
'calendar' => [
       
'sameDay' => '[?odien] [plkst.] LT',
       
'nextDay' => '[r?t] [plkst.] LT',
       
'nextWeek' => function (CarbonInterface $current, CarbonInterface $other) use ($daysOfWeekLocativum) {
            if (
$current->week !== $other->week) {
                return
'[n?ko?o] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
            }

            return
'['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
        },
       
'lastDay' => '[vakar] [plkst.] LT',
       
'lastWeek' => function (CarbonInterface $current) use ($daysOfWeekLocativum) {
            return
'[pag?ju?o] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
        },
       
'sameElse' => 'L',
    ],

   
'weekdays' => $daysOfWeek,
   
'weekdays_short' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
   
'weekdays_min' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
   
'months' => ['janv?ris', 'febru?ris', 'marts', 'apr?lis', 'maijs', 'j?nijs', 'j?lijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'],
   
'months_standalone' => ['janv?r?', 'febru?r?', 'mart?', 'apr?l?', 'maij?', 'j?nij?', 'j?lij?', 'august?', 'septembr?', 'oktobr?', 'novembr?', 'decembr?'],
   
'months_short' => ['janv.', 'febr.', 'mart?', 'apr.', 'maij?', 'j?n.', 'j?l.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'],
   
'meridiem' => ['priek?pusdiena', 'p?cpusdiena'],
];