Вход Регистрация
Файл: upload/catalog/view/javascript/jquery/datetimepicker/locale/ar-sa.js
Строк: 60
<?php
//! moment.js locale configuration
//! locale : Arabic Saudi Arabia (ar-sa)
//! author : Suhail Alkowaileet : https://github.com/xsoh

(function (global, factory) {
   
typeof exports === 'object' && typeof module !== 'undefined' factory(require('../moment')) :
   
typeof define === 'function' && define.amd define(['moment'], factory) :
   
factory(global.moment)
}(
this, function (moment) { 'use strict';


    var 
symbolMap = {
        
'1''١',
        
'2''٢',
        
'3''٣',
        
'4''٤',
        
'5''٥',
        
'6''٦',
        
'7''٧',
        
'8''٨',
        
'9''٩',
        
'0''٠'
    
}, numberMap = {
        
'١''1',
        
'٢''2',
        
'٣''3',
        
'٤''4',
        
'٥''5',
        
'٦''6',
        
'٧''7',
        
'٨''8',
        
'٩''9',
        
'٠''0'
    
};

    var 
ar_sa moment.defineLocale('ar-sa', {
        
months 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
        
monthsShort 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
        
weekdays 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        
weekdaysShort 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
        
weekdaysMin 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        
longDateFormat : {
            
LT 'HH:mm',
            
LTS 'HH:mm:ss',
            
'DD/MM/YYYY',
            
LL 'D MMMM YYYY',
            
LLL 'D MMMM YYYY HH:mm',
            
LLLL 'dddd D MMMM YYYY HH:mm'
        
},
        
meridiemParse: /ص|م/,
        
isPM : function (input) {
            return 
'م' === input;
        },
        
meridiem : function (hourminuteisLower) {
            if (
hour 12) {
                return 
'ص';
            } else {
                return 
'م';
            }
        },
        
calendar : {
            
sameDay'[اليوم على الساعة] LT',
            
nextDay'[غدا على الساعة] LT',
            
nextWeek'dddd [على الساعة] LT',
            
lastDay'[أمس على الساعة] LT',
            
lastWeek'dddd [على الساعة] LT',
            
sameElse'L'
        
},
        
relativeTime : {
            
future 'في %s',
            
past 'منذ %s',
            
'ثوان',
            
'دقيقة',
            
mm '%d دقائق',
            
'ساعة',
            
hh '%d ساعات',
            
'يوم',
            
dd '%d أيام',
            
'شهر',
            
MM '%d أشهر',
            
'سنة',
            
yy '%d سنوات'
        
},
        
preparse: function (string) {
            return 
string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
                return 
numberMap[match];
            }).
replace(/،/g',');
        },
        
postformat: function (string) {
            return 
string.replace(/d/g, function (match) {
                return 
symbolMap[match];
            }).
replace(/,/g'،');
        },
        
week : {
            
dow 6// Saturday is the first day of the week.
            
doy 12  // The week that contains Jan 1st is the first week of the year.
        
}
    });

    return 
ar_sa;

}));
?>
Онлайн: 2
Реклама