Skip to content

Commit

Permalink
Merge pull request #21 from matriphe/add-indonesian-translation
Browse files Browse the repository at this point in the history
Add Indonesian Translation
  • Loading branch information
aboudeh87 authored May 3, 2021
2 parents 1bd183d + ad8044a commit af15f88
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions src/Translations/Indonesian.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?php

namespace GeniusTS\HijriDate\Translations;


/**
* Class Indonesian
*
* @package GeniusTS\HijriDate\Translations
*/
class Indonesian implements TranslationInterface
{

/**
* Hijri Months names
*
* @var array
*/
protected $hijriMonths = [
'Muharam',
'Ṣafar',
'Rabiulawal',
'Rabiulakhir',
'Jumadilawal',
'Jumadilakhir',
'Rajab',
'Syakban',
'Ramadan',
'Syawal',
'Zulkaidah',
'Zulhijah',
];

/**
* short days
*
* @var array
*/
protected $shortDays = ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'];

/**
* days names
*
* @var array
*/
protected $days = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'];

/**
* periods
*
* @var array
*/
protected $periods = ['pagi', 'petang'];

/**
* get array of months names
*
* @return array
*/
public function getHijriMonths(): array
{
return $this->hijriMonths;
}

/**
* get array of short days names
* started from Sunday
*
* @return array
*/
public function getShortDays(): array
{
return $this->shortDays;
}

/**
* get array of months names
* started from Sunday
*
* @return array
*/
public function getDays(): array
{
return $this->days;
}

/**
* get array of periods
*
* @return array
*/
public function getPeriods(): array
{
return $this->periods;
}
}

0 comments on commit af15f88

Please sign in to comment.