Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
edgrosvenor committed Jul 3, 2020
1 parent d4b17a6 commit 5d84f33
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sundial

Natural Language Date / Time Processing for PHP 7.4+
Natural Language Date / Time String Parsing for PHP 7.4+

<p align="center">
<img src="https://raw.githubusercontent.com/grosv/sundial/main/docs/sundial.jpg" height="300" alt="">
Expand Down
29 changes: 29 additions & 0 deletions src/Languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,33 @@ public function eng(): array
],
];
}

public function esp(): array
{
return [
'months' => [
'1' => [' enero '],
'2' => [' febrero ', ' feb '],
'3' => [' marzo ', ' mar '],
'4' => [' abril ', ' abr '],
'5' => [' mayo '],
'6' => [' junio ', ' jun '],
'7' => [' julio ', ' jul '],
'8' => [' agosto ',],
'9' => [' septiembre ', ' sept ', 'set'],
'10' => [' octubre ', ' oct '],
'11' => [' noviembre ', ' nov '],
'12' => [' diciembre ', ' dic '],
],
'days' => [
'sunday' => [' domingo ', ' d ', ' do ', ' dom '],
'monday' => [' lunes ', ' lu ', ' lu ', ' lun '],
'tuesday' => [' martes ', ' m ', ' ma', ' mar '],
'wednesday' => [' miércoles ', ' miercoles ', ' x ', ' mi ', ' mie ', ' mié '],
'thursday' => [' jueves ', ' j ', ' ju ', ' jue '],
'friday' => [' viernes ', ' v ', ' vi ', ' vie '],
'saturday' => [' sábado ', ' sabado ', ' s ', '', ' sa ', ' sab '],
],
];
}
}

0 comments on commit 5d84f33

Please sign in to comment.