our
$VERSION
= version->declare(
'v0.32.0'
);
use
if
$^V ge v5.12.0,
feature
=>
'unicode_strings'
;
extends
(
'Locale::CLDR::Locales::En::Any::150'
);
has
'characters'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=> $^V ge v5.18.0
?
eval
<<'EOT'
sub {
no warnings 'experimental::regex_sets';
return {
numbers => qr{[ \- , % ‰ + 0 1 2 3 4 5 6 7 8 9]},
};
},
EOT
:
sub
{
return
{};
},
);
has
'number_symbols'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'latn'
=> {
'exponential'
=>
q(×10^)
,
'group'
=>
q( )
,
},
} }
);
has
'number_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
percentFormat
=> {
'default'
=> {
'standard'
=> {
'default'
=>
'#,##0 %'
,
},
},
},
} },
);
has
'currencies'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'SEK'
=> {
symbol
=>
'kr'
,
},
} },
);
has
'day_period_data'
=> (
is
=>
'ro'
,
isa
=> CodeRef,
init_arg
=>
undef
,
default
=>
sub
{
sub
{
my
(
$self
,
$type
,
$time
,
$day_period_type
) =
@_
;
$day_period_type
//=
'default'
;
SWITCH:
for
(
$type
) {
if
(
$_
eq
'generic'
) {
if
(
$day_period_type
eq
'selection'
) {
return
'evening1'
if
$time
>= 1800
&&
$time
< 2100;
return
'night1'
if
$time
>= 2100;
return
'night1'
if
$time
< 600;
return
'morning1'
if
$time
>= 600
&&
$time
< 1200;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1800;
}
if
(
$day_period_type
eq
'default'
) {
return
'midnight'
if
$time
== 0;
return
'noon'
if
$time
== 1200;
return
'night1'
if
$time
>= 2100;
return
'night1'
if
$time
< 600;
return
'morning1'
if
$time
>= 600
&&
$time
< 1200;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1800;
return
'evening1'
if
$time
>= 1800
&&
$time
< 2100;
}
last
SWITCH;
}
if
(
$_
eq
'gregorian'
) {
if
(
$day_period_type
eq
'selection'
) {
return
'evening1'
if
$time
>= 1800
&&
$time
< 2100;
return
'night1'
if
$time
>= 2100;
return
'night1'
if
$time
< 600;
return
'morning1'
if
$time
>= 600
&&
$time
< 1200;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1800;
}
if
(
$day_period_type
eq
'default'
) {
return
'midnight'
if
$time
== 0;
return
'noon'
if
$time
== 1200;
return
'night1'
if
$time
>= 2100;
return
'night1'
if
$time
< 600;
return
'morning1'
if
$time
>= 600
&&
$time
< 1200;
return
'afternoon1'
if
$time
>= 1200
&&
$time
< 1800;
return
'evening1'
if
$time
>= 1800
&&
$time
< 2100;
}
last
SWITCH;
}
}
} },
);
around
day_period_data
=>
sub
{
my
(
$orig
,
$self
) =
@_
;
return
$self
->
$orig
;
};
has
'eras'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'generic'
=> {
},
'gregorian'
=> {
},
} },
);
has
'date_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'generic'
=> {
'short'
=>
q{G y-MM-dd}
,
},
'gregorian'
=> {
'short'
=>
q{y-MM-dd}
,
},
} },
);
has
'time_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'generic'
=> {
},
'gregorian'
=> {
},
} },
);
has
'datetime_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'generic'
=> {
},
'gregorian'
=> {
},
} },
);
has
'datetime_formats_available_formats'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
'gregorian'
=> {
yM
=>
q{y-MM}
,
yMEd
=>
q{E, y-MM-dd}
,
yMd
=>
q{y-MM-dd}
,
},
'generic'
=> {
yyyyM
=>
q{y-MM G}
,
yyyyMEd
=>
q{E y-MM-dd G}
,
yyyyMd
=>
q{y-MM-dd G}
,
},
} },
);
has
'datetime_formats_append_item'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
} },
);
has
'datetime_formats_interval'
=> (
is
=>
'ro'
,
isa
=> HashRef,
init_arg
=>
undef
,
default
=>
sub
{ {
} },
);
no
Moo;
1;