— |
our $VERSION = version->declare( 'v0.27.0' );
use if $^V ge v5.12.0, feature => 'unicode_strings' ;
extends ( 'Locale::CLDR::Locales::En::Any::001' );
has 'display_name_key' => (
is => 'ro' ,
isa => 'HashRef[Str]' ,
init_arg => undef ,
default => sub {
{
'colnormalization' => 'Normalised Sorting' ,
}
},
);
has 'display_name_type' => (
is => 'ro' ,
isa => 'HashRef[HashRef[Str]]' ,
init_arg => undef ,
default => sub {
{
'colnormalization' => {
'no' => q{Sort Without Normalisation} ,
'yes' => q{Sort Unicode Normalised} ,
},
}
},
);
has 'units' => (
is => 'ro' ,
isa => 'HashRef[HashRef[HashRef[Str]]]' ,
init_arg => undef ,
default => sub { {
'short' => {
'liter' => {
'one' => q({0} l) ,
'other' => q({0} l) ,
},
},
} }
);
has 'curriencies' => (
is => 'ro' ,
isa => 'HashRef' ,
init_arg => undef ,
default => sub { {
'ILR' => {
display_name => {
'currency' => q(Israeli Shekel \(1980–1985\) ),
'one' => q(Israeli shekel \(1980–1985\) ),
'other' => q(Israeli shekels \(1980–1985\) ),
},
},
'ILS' => {
display_name => {
'currency' => q(Israeli New Shekel) ,
'one' => q(Israeli new shekel) ,
'other' => q(Israeli new shekels) ,
},
},
} },
);
has 'day_period_data' => (
traits => [ 'Code' ],
is => 'ro' ,
isa => 'CodeRef' ,
init_arg => undef ,
handles => { call => 'execute_method' },
default => sub { sub {
my ( $self , $type , $time , $day_period_type ) = @_ ;
$day_period_type //= 'default' ;
SWITCH:
for ( $type ) {
if ( $_ eq 'gregorian' ) {
if ( $day_period_type eq 'default' ) {
return 'morning1' if $time >= 0
&& $time < 1200;
return 'noon' if $time == 1200;
return 'afternoon1' if $time > 1200
&& $time < 2400;
}
if ( $day_period_type eq 'selection' ) {
return 'morning1' if $time >= 600
&& $time < 1200;
return 'night1' if $time >= 2100
&& $time < 2400;
return 'evening1' if $time >= 1800
&& $time < 2100;
return 'afternoon1' if $time >= 1200
&& $time < 1800;
}
last SWITCH;
}
}
} },
);
has 'day_periods' => (
is => 'ro' ,
isa => 'HashRef' ,
init_arg => undef ,
default => sub { {
'gregorian' => {
'format' => {
'wide' => {
'pm' => q{p.m.} ,
'am' => q{a.m.} ,
},
},
},
} },
);
has 'eras' => (
is => 'ro' ,
isa => 'HashRef' ,
init_arg => undef ,
default => sub { {
'gregorian' => {
},
} },
);
has 'date_formats' => (
is => 'ro' ,
isa => 'HashRef' ,
init_arg => undef ,
default => sub { {
'gregorian' => {
},
} },
);
has 'time_formats' => (
is => 'ro' ,
isa => 'HashRef' ,
init_arg => undef ,
default => sub { {
'gregorian' => {
'full' => q{HH:mm:ss zzzz} ,
'long' => q{HH:mm:ss z} ,
'medium' => q{HH:mm:ss} ,
'short' => q{HH:mm} ,
},
} },
);
has 'datetime_formats' => (
is => 'ro' ,
isa => 'HashRef' ,
init_arg => undef ,
default => sub { {
'gregorian' => {
},
} },
);
has 'datetime_formats_available_formats' => (
is => 'ro' ,
isa => 'HashRef' ,
init_arg => undef ,
default => sub { {
} },
);
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 { {
} },
);
has 'time_zone_names' => (
is => 'ro' ,
isa => 'HashRef' ,
init_arg => undef ,
default => sub { {
'Europe/London' => {
short => {
'daylight' => q(BST) ,
},
},
'Europe_Central' => {
short => {
'daylight' => q(CEST) ,
'generic' => q(CET) ,
'standard' => q(CET) ,
},
},
'Europe_Eastern' => {
short => {
'daylight' => q(EEST) ,
'generic' => q(EET) ,
'standard' => q(EET) ,
},
},
'Europe_Western' => {
short => {
'daylight' => q(WEST) ,
'generic' => q(WET) ,
'standard' => q(WET) ,
},
},
} }
);
no Moose;
__PACKAGE__->meta->make_immutable;
1;
|