File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Pe.pm
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


line stmt bran cond sub pod time code
1             =head1
2              
3             Locale::CLDR::Locales::Es::Any::Pe - Package for language Spanish
4              
5             =cut
6              
7             package Locale::CLDR::Locales::Es::Any::Pe;
8             # This file auto generated from Data\common\main\es_PE.xml
9             # on Sun 24 Apr 8:25:46 am GMT
10              
11 1     1   1771 use version;
  1         3  
  1         11  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   139 use v5.10.1;
  1         5  
16 1     1   5 use mro 'c3';
  1         4  
  1         11  
17 1     1   59 use utf8;
  1         2  
  1         11  
18 1     1   46 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         19  
19              
20 1     1   160 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         12  
21 1     1   1157 use Moo;
  1         3  
  1         9  
22              
23             extends('Locale::CLDR::Locales::Es::Any::419');
24             has 'currencies' => (
25             is => 'ro',
26             isa => HashRef,
27             init_arg => undef,
28             default => sub { {
29             'PEN' => {
30             symbol => 'S/.',
31             },
32             } },
33             );
34              
35              
36             has 'calendar_months' => (
37             is => 'ro',
38             isa => HashRef,
39             init_arg => undef,
40             default => sub { {
41             'gregorian' => {
42             'format' => {
43             abbreviated => {
44             nonleap => [
45             'ene.',
46             'feb.',
47             'mar.',
48             'abr.',
49             'may.',
50             'jun.',
51             'jul.',
52             'ago.',
53             'set.',
54             'oct.',
55             'nov.',
56             'dic.'
57             ],
58             leap => [
59            
60             ],
61             },
62             wide => {
63             nonleap => [
64             'enero',
65             'febrero',
66             'marzo',
67             'abril',
68             'mayo',
69             'junio',
70             'julio',
71             'agosto',
72             'setiembre',
73             'octubre',
74             'noviembre',
75             'diciembre'
76             ],
77             leap => [
78            
79             ],
80             },
81             },
82             'stand-alone' => {
83             abbreviated => {
84             nonleap => [
85             'Ene.',
86             'Feb.',
87             'Mar.',
88             'Abr.',
89             'May.',
90             'Jun.',
91             'Jul.',
92             'Ago.',
93             'Set.',
94             'Oct.',
95             'Nov.',
96             'Dic.'
97             ],
98             leap => [
99            
100             ],
101             },
102             wide => {
103             nonleap => [
104             'Enero',
105             'Febrero',
106             'Marzo',
107             'Abril',
108             'Mayo',
109             'Junio',
110             'Julio',
111             'Agosto',
112             'Setiembre',
113             'Octubre',
114             'Noviembre',
115             'Diciembre'
116             ],
117             leap => [
118            
119             ],
120             },
121             },
122             },
123             } },
124             );
125              
126             has 'day_period_data' => (
127             is => 'ro',
128             isa => CodeRef,
129             init_arg => undef,
130             default => sub { sub {
131             # Time in hhmm format
132             my ($self, $type, $time, $day_period_type) = @_;
133             $day_period_type //= 'default';
134             SWITCH:
135             for ($type) {
136             if ($_ eq 'generic') {
137             if($day_period_type eq 'default') {
138             return 'noon' if $time == 1200;
139             return 'evening1' if $time >= 1200
140             && $time < 2000;
141             return 'night1' if $time >= 2000
142             && $time < 2400;
143             return 'morning2' if $time >= 600
144             && $time < 1200;
145             return 'morning1' if $time >= 0
146             && $time < 600;
147             }
148             if($day_period_type eq 'selection') {
149             return 'night1' if $time >= 2000
150             && $time < 2400;
151             return 'morning2' if $time >= 600
152             && $time < 1200;
153             return 'morning1' if $time >= 0
154             && $time < 600;
155             return 'evening1' if $time >= 1200
156             && $time < 2000;
157             }
158             last SWITCH;
159             }
160             if ($_ eq 'gregorian') {
161             if($day_period_type eq 'default') {
162             return 'noon' if $time == 1200;
163             return 'evening1' if $time >= 1200
164             && $time < 2000;
165             return 'night1' if $time >= 2000
166             && $time < 2400;
167             return 'morning2' if $time >= 600
168             && $time < 1200;
169             return 'morning1' if $time >= 0
170             && $time < 600;
171             }
172             if($day_period_type eq 'selection') {
173             return 'night1' if $time >= 2000
174             && $time < 2400;
175             return 'morning2' if $time >= 600
176             && $time < 1200;
177             return 'morning1' if $time >= 0
178             && $time < 600;
179             return 'evening1' if $time >= 1200
180             && $time < 2000;
181             }
182             last SWITCH;
183             }
184             }
185             } },
186             );
187              
188             around day_period_data => sub {
189             my ($orig, $self) = @_;
190             return $self->$orig;
191             };
192              
193             has 'eras' => (
194             is => 'ro',
195             isa => HashRef,
196             init_arg => undef,
197             default => sub { {
198             'generic' => {
199             },
200             'gregorian' => {
201             },
202             } },
203             );
204              
205             has 'date_formats' => (
206             is => 'ro',
207             isa => HashRef,
208             init_arg => undef,
209             default => sub { {
210             'generic' => {
211             'short' => q{d/MM/yy GGGGG},
212             },
213             'gregorian' => {
214             'short' => q{d/MM/yy},
215             },
216             } },
217             );
218              
219             has 'time_formats' => (
220             is => 'ro',
221             isa => HashRef,
222             init_arg => undef,
223             default => sub { {
224             'generic' => {
225             },
226             'gregorian' => {
227             },
228             } },
229             );
230              
231             has 'datetime_formats' => (
232             is => 'ro',
233             isa => HashRef,
234             init_arg => undef,
235             default => sub { {
236             'generic' => {
237             },
238             'gregorian' => {
239             },
240             } },
241             );
242              
243             has 'datetime_formats_available_formats' => (
244             is => 'ro',
245             isa => HashRef,
246             init_arg => undef,
247             default => sub { {
248             } },
249             );
250              
251             has 'datetime_formats_append_item' => (
252             is => 'ro',
253             isa => HashRef,
254             init_arg => undef,
255             default => sub { {
256             } },
257             );
258              
259             has 'datetime_formats_interval' => (
260             is => 'ro',
261             isa => HashRef,
262             init_arg => undef,
263             default => sub { {
264             'gregorian' => {
265             Hm => {
266             H => q{HH:mm–HH:mm},
267             m => q{HH:mm–HH:mm},
268             },
269             Hmv => {
270             H => q{HH:mm–HH:mm v},
271             m => q{HH:mm–HH:mm v},
272             },
273             Hv => {
274             H => q{HH–HH v},
275             },
276             MEd => {
277             M => q{E d/MM – E d/MM},
278             d => q{E d/MM – E d/MM},
279             },
280             MMMEd => {
281             M => q{E d 'de' MMM 'al' E d 'de' MMM},
282             d => q{E d 'al' E d 'de' MMM},
283             },
284             MMMd => {
285             M => q{d 'de' MMM 'al' d 'de' MMM},
286             },
287             Md => {
288             M => q{d/MM – d/MM},
289             d => q{d/MM – d/MM},
290             },
291             fallback => '{0} a el {1}',
292             hm => {
293             h => q{h:mm–h:mm a},
294             m => q{h:mm–h:mm a},
295             },
296             yM => {
297             M => q{MM/y – MM/y},
298             y => q{MM/y – MM/y},
299             },
300             yMEd => {
301             M => q{E d/MM/y – E d/MM/y},
302             d => q{E d/MM/y – E d/MM/y},
303             y => q{E d/MM/y – E d/MM/y},
304             },
305             yMMM => {
306             y => q{MMM 'de' y 'a' MMM 'de' y},
307             },
308             yMMMEd => {
309             M => q{E d 'de' MMM 'al' E d 'de' MMM 'de' y},
310             d => q{E d 'al' E d 'de' MMM 'de' y},
311             y => q{E d 'de' MMM 'de' y 'al' E d 'de' MMM 'de' y},
312             },
313             yMMMd => {
314             M => q{d 'de' MMM 'al' d 'de' MMM 'de' y},
315             y => q{d 'de' MMM 'de' y 'al' d 'de' MMM 'de' y},
316             },
317             yMd => {
318             M => q{d/MM/y – d/MM/y},
319             d => q{d/MM/y – d/MM/y},
320             y => q{d/MM/y – d/MM/y},
321             },
322             },
323             'generic' => {
324             Hm => {
325             H => q{HH:mm–HH:mm},
326             m => q{HH:mm–HH:mm},
327             },
328             Hmv => {
329             H => q{HH:mm–HH:mm v},
330             m => q{HH:mm–HH:mm v},
331             },
332             MEd => {
333             M => q{E d/MM – E d/MM},
334             d => q{E d/MM – E d/MM},
335             },
336             MMMEd => {
337             M => q{E d 'de' MMM 'al' E d 'de' MMM},
338             d => q{E d 'al' E d 'de' MMM},
339             },
340             MMMd => {
341             M => q{d 'de' MMM 'al' d 'de' MMM},
342             },
343             Md => {
344             M => q{d/MM – d/MM},
345             d => q{d/MM – d/MM},
346             },
347             fallback => '{0} a el {1}',
348             hm => {
349             h => q{h:mm–h:mm a},
350             m => q{h:mm–h:mm a},
351             },
352             hmv => {
353             h => q{h:mm–h:mm a v},
354             m => q{h:mm–h:mm a v},
355             },
356             y => {
357             y => q{y–y},
358             },
359             yM => {
360             M => q{MM/y – MM/y},
361             y => q{MM/y – MM/y},
362             },
363             yMEd => {
364             M => q{E d/MM/y – E d/MM/y},
365             d => q{E d/MM/y – E d/MM/y},
366             y => q{E d/MM/y – E d/MM/y},
367             },
368             yMMM => {
369             M => q{MMM–MMM 'de' y},
370             y => q{MMM 'de' y 'a' MMM 'de' y},
371             },
372             yMMMEd => {
373             M => q{E d 'de' MMM 'al' E d 'de' MMM 'de' y},
374             d => q{E d 'al' E d 'de' MMM 'de' y},
375             y => q{E d 'de' MMM 'de' y 'al' E d 'de' MMM 'de' y},
376             },
377             yMMMd => {
378             M => q{d 'de' MMM 'al' d 'de' MMM 'de' y},
379             d => q{d–d 'de' MMM 'de' y},
380             y => q{d 'de' MMM 'de' y 'al' d 'de' MMM 'de' y},
381             },
382             yMd => {
383             M => q{d/MM/y – d/MM/y},
384             d => q{d/MM/y – d/MM/y},
385             y => q{d/MM/y – d/MM/y},
386             },
387             },
388             } },
389             );
390              
391             has 'time_zone_names' => (
392             is => 'ro',
393             isa => HashRef,
394             init_arg => undef,
395             default => sub { {
396             'Peru' => {
397             short => {
398             'daylight' => q(PEST),
399             'generic' => q(PET),
400             'standard' => q(PET),
401             },
402             },
403             } }
404             );
405 1     1   4523 no Moo;
  1         2  
  1         7  
406              
407             1;
408              
409             # vim: tabstop=4