File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Sv.pm
Criterion Covered Total %
statement 29 29 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod n/a
total 39 39 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1
4              
5             Locale::CLDR::Locales::Es::Any::Sv - Package for language Spanish
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/es_SV.xml
10             # on Mon 11 Apr 5:27:26 pm GMT
11              
12             use strict;
13 1     1   815 use warnings;
  1         2  
  1         24  
14 1     1   4 use version;
  1         2  
  1         20  
15 1     1   5  
  1         1  
  1         5  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 1     1   77 use mro 'c3';
  1         2  
20 1     1   4 use utf8;
  1         2  
  1         5  
21 1     1   20 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         3  
22 1     1   40 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         9  
23 1     1   90 use Moo;
  1         2  
  1         5  
24 1     1   806  
  1         2  
  1         5  
25             extends('Locale::CLDR::Locales::Es::Any::419');
26             has 'display_name_language' => (
27             is => 'ro',
28             isa => CodeRef,
29             init_arg => undef,
30             default => sub {
31             sub {
32             my %languages = (
33             'ace' => 'acehnés',
34             'arp' => 'arapaho',
35             'bho' => 'bhojpuri',
36             'grc' => 'griego antiguo',
37             'nso' => 'sotho septentrional',
38             'ss' => 'siswati',
39             'wo' => 'wolof',
40              
41             );
42             if (@_) {
43             return $languages{$_[0]};
44             }
45             return \%languages;
46             }
47             },
48             );
49              
50             has 'display_name_region' => (
51             is => 'ro',
52             isa => HashRef[Str],
53             init_arg => undef,
54             default => sub {
55             {
56             'UM' => 'Islas menores alejadas de EE. UU.',
57              
58             }
59             },
60             );
61              
62             has 'currencies' => (
63             is => 'ro',
64             isa => HashRef,
65             init_arg => undef,
66             default => sub { {
67             'USD' => {
68             symbol => '$',
69             },
70             } },
71             );
72              
73              
74             has 'day_period_data' => (
75             is => 'ro',
76             isa => CodeRef,
77             init_arg => undef,
78             default => sub { sub {
79             # Time in hhmm format
80             my ($self, $type, $time, $day_period_type) = @_;
81             $day_period_type //= 'default';
82             SWITCH:
83             for ($type) {
84             if ($_ eq 'gregorian') {
85             if($day_period_type eq 'default') {
86             return 'noon' if $time == 1200;
87             return 'evening1' if $time >= 1200
88             && $time < 2000;
89             return 'morning1' if $time >= 0
90             && $time < 600;
91             return 'morning2' if $time >= 600
92             && $time < 1200;
93             return 'night1' if $time >= 2000
94             && $time < 2400;
95             }
96             if($day_period_type eq 'selection') {
97             return 'evening1' if $time >= 1200
98             && $time < 2000;
99             return 'morning1' if $time >= 0
100             && $time < 600;
101             return 'morning2' if $time >= 600
102             && $time < 1200;
103             return 'night1' if $time >= 2000
104             && $time < 2400;
105             }
106             last SWITCH;
107             }
108             }
109             } },
110             );
111              
112             around day_period_data => sub {
113             my ($orig, $self) = @_;
114             return $self->$orig;
115             };
116              
117             has 'day_periods' => (
118             is => 'ro',
119             isa => HashRef,
120             init_arg => undef,
121             default => sub { {
122             'gregorian' => {
123             'format' => {
124             'abbreviated' => {
125             'am' => q{a. m.},
126             'pm' => q{p. m.},
127             },
128             'wide' => {
129             'am' => q{a. m.},
130             'pm' => q{p. m.},
131             },
132             },
133             'stand-alone' => {
134             'abbreviated' => {
135             'am' => q{a. m.},
136             'pm' => q{p. m.},
137             },
138             'narrow' => {
139             'am' => q{a. m.},
140             'pm' => q{p. m.},
141             },
142             'wide' => {
143             'am' => q{a. m.},
144             'pm' => q{p. m.},
145             },
146             },
147             },
148             } },
149             );
150              
151             has 'eras' => (
152             is => 'ro',
153             isa => HashRef,
154             init_arg => undef,
155             default => sub { {
156             'gregorian' => {
157             },
158             } },
159             );
160              
161             has 'date_formats' => (
162             is => 'ro',
163             isa => HashRef,
164             init_arg => undef,
165             default => sub { {
166             'gregorian' => {
167             },
168             } },
169             );
170              
171             has 'time_formats' => (
172             is => 'ro',
173             isa => HashRef,
174             init_arg => undef,
175             default => sub { {
176             'gregorian' => {
177             },
178             } },
179             );
180              
181             has 'datetime_formats' => (
182             is => 'ro',
183             isa => HashRef,
184             init_arg => undef,
185             default => sub { {
186             'gregorian' => {
187             },
188             } },
189             );
190              
191             has 'datetime_formats_available_formats' => (
192             is => 'ro',
193             isa => HashRef,
194             init_arg => undef,
195             default => sub { {
196             } },
197             );
198              
199             has 'datetime_formats_append_item' => (
200             is => 'ro',
201             isa => HashRef,
202             init_arg => undef,
203             default => sub { {
204             } },
205             );
206              
207             has 'datetime_formats_interval' => (
208             is => 'ro',
209             isa => HashRef,
210             init_arg => undef,
211             default => sub { {
212             } },
213             );
214              
215             no Moo;
216 1     1   991  
  1         1  
  1         5  
217             1;
218              
219             # vim: tabstop=4