Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
e637878b
Commit
e637878b
authored
9 years ago
by
Kruno H
Browse files
Options
Downloads
Patches
Plain Diff
Create hr.js
parent
a53c2881
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/moment-locales/hr.js
+139
-0
139 additions, 0 deletions
lib/moment-locales/hr.js
with
139 additions
and
0 deletions
lib/moment-locales/hr.js
0 → 100644
+
139
−
0
View file @
e637878b
//! moment.js locale configuration
//! locale : hrvatski (hr)
//! authors : Bojan Marković : https://github.com/bmarkovic (original) | Kruno H : https://github.com/diomed (additions)
(
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
'
;
function
translate
(
number
,
withoutSuffix
,
key
)
{
var
result
=
number
+
'
'
;
switch
(
key
)
{
case
'
m
'
:
return
withoutSuffix
?
'
jedna minuta
'
:
'
jedne minute
'
;
case
'
mm
'
:
if
(
number
===
1
)
{
result
+=
'
minuta
'
;
}
else
if
(
number
===
2
||
number
===
3
||
number
===
4
)
{
result
+=
'
minute
'
;
}
else
{
result
+=
'
minuta
'
;
}
return
result
;
case
'
h
'
:
return
withoutSuffix
?
'
jedan sat
'
:
'
jednog sata
'
;
case
'
hh
'
:
if
(
number
===
1
)
{
result
+=
'
sat
'
;
}
else
if
(
number
===
2
||
number
===
3
||
number
===
4
)
{
result
+=
'
sata
'
;
}
else
{
result
+=
'
sati
'
;
}
return
result
;
case
'
dd
'
:
if
(
number
===
1
)
{
result
+=
'
dan
'
;
}
else
{
result
+=
'
dana
'
;
}
return
result
;
case
'
MM
'
:
if
(
number
===
1
)
{
result
+=
'
mjesec
'
;
}
else
if
(
number
===
2
||
number
===
3
||
number
===
4
)
{
result
+=
'
mjeseca
'
;
}
else
{
result
+=
'
mjeseci
'
;
}
return
result
;
case
'
yy
'
:
if
(
number
===
1
)
{
result
+=
'
godina
'
;
}
else
if
(
number
===
2
||
number
===
3
||
number
===
4
)
{
result
+=
'
godine
'
;
}
else
{
result
+=
'
godina
'
;
}
return
result
;
}
}
var
hr
=
moment
.
defineLocale
(
'
hr
'
,
{
months
:
'
siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac
'
.
split
(
'
_
'
),
monthsShort
:
'
sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.
'
.
split
(
'
_
'
),
weekdays
:
'
nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota
'
.
split
(
'
_
'
),
weekdaysShort
:
'
ned._pon._uto._sri._čet._pet._sub.
'
.
split
(
'
_
'
),
weekdaysMin
:
'
ne_po_ut_sr_če_pe_su
'
.
split
(
'
_
'
),
longDateFormat
:
{
LT
:
'
H:mm
'
,
LTS
:
'
LT:ss
'
,
L
:
'
DD. MM. YYYY
'
,
LL
:
'
D. MMMM YYYY
'
,
LLL
:
'
D. MMMM YYYY LT
'
,
LLLL
:
'
dddd, D. MMMM YYYY LT
'
},
calendar
:
{
sameDay
:
'
[danas u] LT
'
,
nextDay
:
'
[sutra u] LT
'
,
nextWeek
:
function
()
{
switch
(
this
.
day
())
{
case
0
:
return
'
[u] [nedjelju] [u] LT
'
;
case
3
:
return
'
[u] [srijedu] [u] LT
'
;
case
6
:
return
'
[u] [subotu] [u] LT
'
;
case
1
:
case
2
:
case
4
:
case
5
:
return
'
[u] dddd [u] LT
'
;
}
},
lastDay
:
'
[jučer u] LT
'
,
lastWeek
:
function
()
{
switch
(
this
.
day
())
{
case
0
:
case
3
:
return
'
[prošlu] dddd [u] LT
'
;
case
6
:
return
'
[prošle] [subote] [u] LT
'
;
case
1
:
case
2
:
case
4
:
case
5
:
return
'
[prošli] dddd [u] LT
'
;
}
},
sameElse
:
'
L
'
},
relativeTime
:
{
future
:
'
za %s
'
,
past
:
'
prije %s
'
,
s
:
'
par sekundi
'
,
m
:
'
minutu
'
,
mm
:
'
minuta
'
,
h
:
'
sat
'
,
hh
:
'
sati
'
,
d
:
'
dan
'
,
dd
:
'
dana
'
,
M
:
'
mjesec
'
,
MM
:
'
mjeseci
'
,
y
:
'
godinu
'
,
yy
:
'
godina
'
},
ordinalParse
:
/
\d{1,2}\.
/
,
ordinal
:
'
%d.
'
,
week
:
{
dow
:
1
,
// Ponedjeljak je prvi dan u tjednu.
doy
:
7
// Tjedan koji sadrži 1. sij. je prvi tjedan u godini.
}
});
return
hr
;
}));
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment