mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 10:23:42 +08:00
cdb7ddc258
We updated version of moment and moment-timezone as our current versions are outdated making Discourse Dates broken on places where timezone had updates, like here in Brazil. This also update highlightJS to the latest version and corrected a test that relied on a no longer supported locale in moment.
63 lines
2.4 KiB
JavaScript
63 lines
2.4 KiB
JavaScript
//! moment.js locale configuration
|
||
//! locale : Uzbek [uz]
|
||
//! author : Sardor Muminov : https://github.com/muminoff
|
||
|
||
;(function (global, factory) {
|
||
typeof exports === 'object' && typeof module !== 'undefined'
|
||
&& typeof require === 'function' ? factory(require('../moment')) :
|
||
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||
factory(global.moment)
|
||
}(this, (function (moment) { 'use strict';
|
||
|
||
//! moment.js locale configuration
|
||
|
||
var uz = moment.defineLocale('uz', {
|
||
months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
|
||
'_'
|
||
),
|
||
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
|
||
weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
|
||
weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
|
||
weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
|
||
longDateFormat: {
|
||
LT: 'HH:mm',
|
||
LTS: 'HH:mm:ss',
|
||
L: 'DD/MM/YYYY',
|
||
LL: 'D MMMM YYYY',
|
||
LLL: 'D MMMM YYYY HH:mm',
|
||
LLLL: 'D MMMM YYYY, dddd HH:mm',
|
||
},
|
||
calendar: {
|
||
sameDay: '[Бугун соат] LT [да]',
|
||
nextDay: '[Эртага] LT [да]',
|
||
nextWeek: 'dddd [куни соат] LT [да]',
|
||
lastDay: '[Кеча соат] LT [да]',
|
||
lastWeek: '[Утган] dddd [куни соат] LT [да]',
|
||
sameElse: 'L',
|
||
},
|
||
relativeTime: {
|
||
future: 'Якин %s ичида',
|
||
past: 'Бир неча %s олдин',
|
||
s: 'фурсат',
|
||
ss: '%d фурсат',
|
||
m: 'бир дакика',
|
||
mm: '%d дакика',
|
||
h: 'бир соат',
|
||
hh: '%d соат',
|
||
d: 'бир кун',
|
||
dd: '%d кун',
|
||
M: 'бир ой',
|
||
MM: '%d ой',
|
||
y: 'бир йил',
|
||
yy: '%d йил',
|
||
},
|
||
week: {
|
||
dow: 1, // Monday is the first day of the week.
|
||
doy: 7, // The week that contains Jan 4th is the first week of the year.
|
||
},
|
||
});
|
||
|
||
return uz;
|
||
|
||
})));
|