Skip to content

Commit af15f88

Browse files
authored
Merge pull request #21 from matriphe/add-indonesian-translation
Add Indonesian Translation
2 parents 1bd183d + ad8044a commit af15f88

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

src/Translations/Indonesian.php

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?php
2+
3+
namespace GeniusTS\HijriDate\Translations;
4+
5+
6+
/**
7+
* Class Indonesian
8+
*
9+
* @package GeniusTS\HijriDate\Translations
10+
*/
11+
class Indonesian implements TranslationInterface
12+
{
13+
14+
/**
15+
* Hijri Months names
16+
*
17+
* @var array
18+
*/
19+
protected $hijriMonths = [
20+
'Muharam',
21+
'Ṣafar',
22+
'Rabiulawal',
23+
'Rabiulakhir',
24+
'Jumadilawal',
25+
'Jumadilakhir',
26+
'Rajab',
27+
'Syakban',
28+
'Ramadan',
29+
'Syawal',
30+
'Zulkaidah',
31+
'Zulhijah',
32+
];
33+
34+
/**
35+
* short days
36+
*
37+
* @var array
38+
*/
39+
protected $shortDays = ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'];
40+
41+
/**
42+
* days names
43+
*
44+
* @var array
45+
*/
46+
protected $days = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'];
47+
48+
/**
49+
* periods
50+
*
51+
* @var array
52+
*/
53+
protected $periods = ['pagi', 'petang'];
54+
55+
/**
56+
* get array of months names
57+
*
58+
* @return array
59+
*/
60+
public function getHijriMonths(): array
61+
{
62+
return $this->hijriMonths;
63+
}
64+
65+
/**
66+
* get array of short days names
67+
* started from Sunday
68+
*
69+
* @return array
70+
*/
71+
public function getShortDays(): array
72+
{
73+
return $this->shortDays;
74+
}
75+
76+
/**
77+
* get array of months names
78+
* started from Sunday
79+
*
80+
* @return array
81+
*/
82+
public function getDays(): array
83+
{
84+
return $this->days;
85+
}
86+
87+
/**
88+
* get array of periods
89+
*
90+
* @return array
91+
*/
92+
public function getPeriods(): array
93+
{
94+
return $this->periods;
95+
}
96+
}

0 commit comments

Comments
 (0)