You are here

public static function PersianDateHelper::monthNamesUntranslated in Persian Date for Drupal 8 8.4

Same name and namespace in other branches
  1. 8 src/PersianDateHelper.php \Drupal\persian_date\PersianDateHelper::monthNamesUntranslated()

Constructs an untranslated array of month names.

Return value

array An array of month names.

Overrides DateHelper::monthNamesUntranslated

1 call to PersianDateHelper::monthNamesUntranslated()
PersianDateHelper::monthNamesAbbrUntranslated in src/PersianDateHelper.php
Constructs an untranslated array of abbreviated month names.

File

src/PersianDateHelper.php, line 24

Class

PersianDateHelper

Namespace

Drupal\persian_date

Code

public static function monthNamesUntranslated() {

  // Force the key to use the correct month value, rather than
  // starting with zero.
  return [
    1 => 'فروردین',
    2 => 'اردیبهشت',
    3 => 'خرداد',
    4 => 'تیر',
    5 => 'مرداد',
    6 => 'شهریور',
    7 => 'مهر',
    8 => 'آبان',
    9 => 'آذر',
    10 => 'دی',
    11 => 'بهمن',
    12 => 'اسفند',
  ];
}