Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4069773
pl.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
pl.js
View Options
//! moment.js locale configuration
//! locale : Polish [pl]
//! author : Rafal Hirsz : https://github.com/evoL
;(
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
monthsNominative
=
'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'
.
split
(
'_'
),
monthsSubjective
=
'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'
.
split
(
'_'
);
function
plural
(
n
)
{
return
n
%
10
<
5
&&
n
%
10
>
1
&&
~~
(
n
/
10
)
%
10
!==
1
;
}
function
translate
(
number
,
withoutSuffix
,
key
)
{
var
result
=
number
+
' '
;
switch
(
key
)
{
case
'ss'
:
return
result
+
(
plural
(
number
)
?
'sekundy'
:
'sekund'
);
case
'm'
:
return
withoutSuffix
?
'minuta'
:
'minutę'
;
case
'mm'
:
return
result
+
(
plural
(
number
)
?
'minuty'
:
'minut'
);
case
'h'
:
return
withoutSuffix
?
'godzina'
:
'godzinę'
;
case
'hh'
:
return
result
+
(
plural
(
number
)
?
'godziny'
:
'godzin'
);
case
'MM'
:
return
result
+
(
plural
(
number
)
?
'miesiące'
:
'miesięcy'
);
case
'yy'
:
return
result
+
(
plural
(
number
)
?
'lata'
:
'lat'
);
}
}
var
pl
=
moment
.
defineLocale
(
'pl'
,
{
months
:
function
(
momentToFormat
,
format
)
{
if
(
!
momentToFormat
)
{
return
monthsNominative
;
}
else
if
(
format
===
''
)
{
// Hack: if format empty we know this is used to generate
// RegExp by moment. Give then back both valid forms of months
// in RegExp ready format.
return
(
'('
+
monthsSubjective
[
momentToFormat
.
month
()]
+
'|'
+
monthsNominative
[
momentToFormat
.
month
()]
+
')'
);
}
else
if
(
/D MMMM/
.
test
(
format
))
{
return
monthsSubjective
[
momentToFormat
.
month
()];
}
else
{
return
monthsNominative
[
momentToFormat
.
month
()];
}
},
monthsShort
:
'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'
.
split
(
'_'
),
weekdays
:
'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'
.
split
(
'_'
),
weekdaysShort
:
'ndz_pon_wt_śr_czw_pt_sob'
.
split
(
'_'
),
weekdaysMin
:
'Nd_Pn_Wt_Śr_Cz_Pt_So'
.
split
(
'_'
),
longDateFormat
:
{
LT
:
'HH:mm'
,
LTS
:
'HH:mm:ss'
,
L
:
'DD.MM.YYYY'
,
LL
:
'D MMMM YYYY'
,
LLL
:
'D MMMM YYYY HH:mm'
,
LLLL
:
'dddd, D MMMM YYYY HH:mm'
,
},
calendar
:
{
sameDay
:
'[Dziś o] LT'
,
nextDay
:
'[Jutro o] LT'
,
nextWeek
:
function
()
{
switch
(
this
.
day
())
{
case
0
:
return
'[W niedzielę o] LT'
;
case
2
:
return
'[We wtorek o] LT'
;
case
3
:
return
'[W środę o] LT'
;
case
6
:
return
'[W sobotę o] LT'
;
default
:
return
'[W] dddd [o] LT'
;
}
},
lastDay
:
'[Wczoraj o] LT'
,
lastWeek
:
function
()
{
switch
(
this
.
day
())
{
case
0
:
return
'[W zeszłą niedzielę o] LT'
;
case
3
:
return
'[W zeszłą środę o] LT'
;
case
6
:
return
'[W zeszłą sobotę o] LT'
;
default
:
return
'[W zeszły] dddd [o] LT'
;
}
},
sameElse
:
'L'
,
},
relativeTime
:
{
future
:
'za %s'
,
past
:
'%s temu'
,
s
:
'kilka sekund'
,
ss
:
translate
,
m
:
translate
,
mm
:
translate
,
h
:
translate
,
hh
:
translate
,
d
:
'1 dzień'
,
dd
:
'%d dni'
,
M
:
'miesiąc'
,
MM
:
translate
,
y
:
'rok'
,
yy
:
translate
,
},
dayOfMonthOrdinalParse
:
/\d{1,2}\./
,
ordinal
:
'%d.'
,
week
:
{
dow
:
1
,
// Monday is the first day of the week.
doy
:
4
,
// The week that contains Jan 4th is the first week of the year.
},
});
return
pl
;
})));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 16 2026, 22:43 (11 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
65/9a/d56f2b549b91a00a72d1e159c11f
Default Alt Text
pl.js (4 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment