File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Py.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::Py - Package for language Spanish
4              
5             =cut
6              
7             package Locale::CLDR::Locales::Es::Any::Py;
8             # This file auto generated from Data\common\main\es_PY.xml
9             # on Sun 24 Apr 8:25:48 am GMT
10              
11 1     1   1694 use version;
  1         2  
  1         10  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   139 use v5.10.1;
  1         4  
16 1     1   7 use mro 'c3';
  1         2  
  1         11  
17 1     1   54 use utf8;
  1         3  
  1         14  
18 1     1   59 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         3  
  1         21  
19              
20 1     1   163 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         3  
  1         12  
21 1     1   1197 use Moo;
  1         4  
  1         8  
22              
23             extends('Locale::CLDR::Locales::Es::Any::419');
24             has 'units' => (
25             is => 'ro',
26             isa => HashRef[HashRef[HashRef[Str]]],
27             init_arg => undef,
28             default => sub { {
29             'long' => {
30             'ampere' => {
31             'name' => q(amperios),
32             'one' => q({0} amperio),
33             'other' => q({0} amperios),
34             },
35             'milliampere' => {
36             'name' => q(miliamperios),
37             'one' => q({0} miliamperio),
38             'other' => q({0} miliamperios),
39             },
40             'ohm' => {
41             'one' => q({0} ohmio),
42             'other' => q({0} ohmios),
43             },
44             'volt' => {
45             'one' => q({0} voltio),
46             'other' => q({0} voltios),
47             },
48             'year' => {
49             'per' => q({0}/año),
50             },
51             },
52             'narrow' => {
53             'day' => {
54             'name' => q(día),
55             },
56             'month' => {
57             'name' => q(mes),
58             },
59             'year' => {
60             'name' => q(año),
61             },
62             },
63             'short' => {
64             'day' => {
65             'name' => q(días),
66             'one' => q({0} día),
67             'other' => q({0} días),
68             'per' => q({0}/día),
69             },
70             'month' => {
71             'name' => q(meses),
72             'one' => q({0} mes),
73             'other' => q({0} meses),
74             'per' => q({0}/mes),
75             },
76             'second' => {
77             'name' => q(seg.),
78             'one' => q({0} seg.),
79             'other' => q({0} seg.),
80             'per' => q({0}/seg.),
81             },
82             'volt' => {
83             'name' => q(voltios),
84             },
85             'watt' => {
86             'name' => q(vatios),
87             },
88             'year' => {
89             'name' => q(años),
90             'one' => q({0} año),
91             'other' => q({0} años),
92             'per' => q({0}/año),
93             },
94             },
95             } }
96             );
97              
98             has 'listPatterns' => (
99             is => 'ro',
100             isa => HashRef,
101             init_arg => undef,
102             default => sub { {
103             end => q({0} y {1}),
104             } }
105             );
106              
107             has 'number_symbols' => (
108             is => 'ro',
109             isa => HashRef,
110             init_arg => undef,
111             default => sub { {
112             'latn' => {
113             'decimal' => q(,),
114             'group' => q(.),
115             },
116             } }
117             );
118              
119             has 'number_currency_formats' => (
120             is => 'ro',
121             isa => HashRef,
122             init_arg => undef,
123             default => sub { {
124             'latn' => {
125             'pattern' => {
126             'default' => {
127             'standard' => {
128             'negative' => '¤ -#,##0.00',
129             'positive' => '¤ #,##0.00',
130             },
131             },
132             },
133             },
134             } },
135             );
136              
137             has 'currencies' => (
138             is => 'ro',
139             isa => HashRef,
140             init_arg => undef,
141             default => sub { {
142             'PYG' => {
143             symbol => 'Gs.',
144             },
145             } },
146             );
147              
148              
149             has 'calendar_months' => (
150             is => 'ro',
151             isa => HashRef,
152             init_arg => undef,
153             default => sub { {
154             'gregorian' => {
155             'format' => {
156             abbreviated => {
157             nonleap => [
158             'ene.',
159             'feb.',
160             'mar.',
161             'abr.',
162             'may.',
163             'jun.',
164             'jul.',
165             'ago.',
166             'sept.',
167             'oct.',
168             'nov.',
169             'dic.'
170             ],
171             leap => [
172            
173             ],
174             },
175             },
176             'stand-alone' => {
177             abbreviated => {
178             nonleap => [
179             'ene.',
180             'feb.',
181             'mar.',
182             'abr.',
183             'may.',
184             'jun.',
185             'jul.',
186             'ago.',
187             'sept.',
188             'oct.',
189             'nov.',
190             'dic.'
191             ],
192             leap => [
193            
194             ],
195             },
196             },
197             },
198             } },
199             );
200              
201             has 'calendar_days' => (
202             is => 'ro',
203             isa => HashRef,
204             init_arg => undef,
205             default => sub { {
206             'gregorian' => {
207             'format' => {
208             short => {
209             mon => 'lu',
210             tue => 'ma',
211             wed => 'mi',
212             thu => 'ju',
213             fri => 'vi',
214             sat => 'sa',
215             sun => 'do'
216             },
217             },
218             'stand-alone' => {
219             short => {
220             mon => 'Lu',
221             tue => 'Ma',
222             wed => 'Mi',
223             thu => 'Ju',
224             fri => 'Vi',
225             sat => 'Sa',
226             sun => 'Do'
227             },
228             },
229             },
230             } },
231             );
232              
233             has 'day_period_data' => (
234             is => 'ro',
235             isa => CodeRef,
236             init_arg => undef,
237             default => sub { sub {
238             # Time in hhmm format
239             my ($self, $type, $time, $day_period_type) = @_;
240             $day_period_type //= 'default';
241             SWITCH:
242             for ($type) {
243             if ($_ eq 'gregorian') {
244             if($day_period_type eq 'default') {
245             return 'noon' if $time == 1200;
246             return 'evening1' if $time >= 1200
247             && $time < 2000;
248             return 'night1' if $time >= 2000
249             && $time < 2400;
250             return 'morning2' if $time >= 600
251             && $time < 1200;
252             return 'morning1' if $time >= 0
253             && $time < 600;
254             }
255             if($day_period_type eq 'selection') {
256             return 'night1' if $time >= 2000
257             && $time < 2400;
258             return 'morning2' if $time >= 600
259             && $time < 1200;
260             return 'morning1' if $time >= 0
261             && $time < 600;
262             return 'evening1' if $time >= 1200
263             && $time < 2000;
264             }
265             last SWITCH;
266             }
267             }
268             } },
269             );
270              
271             around day_period_data => sub {
272             my ($orig, $self) = @_;
273             return $self->$orig;
274             };
275              
276             has 'day_periods' => (
277             is => 'ro',
278             isa => HashRef,
279             init_arg => undef,
280             default => sub { {
281             'gregorian' => {
282             'format' => {
283             'narrow' => {
284             'morning1' => q{de la madrugada},
285             'night1' => q{de la noche},
286             'morning2' => q{de la mañana},
287             'noon' => q{del mediodía},
288             'evening1' => q{de la tarde},
289             },
290             },
291             'stand-alone' => {
292             'narrow' => {
293             'noon' => q{m.},
294             },
295             },
296             },
297             } },
298             );
299              
300             has 'eras' => (
301             is => 'ro',
302             isa => HashRef,
303             init_arg => undef,
304             default => sub { {
305             'gregorian' => {
306             },
307             } },
308             );
309              
310             has 'date_formats' => (
311             is => 'ro',
312             isa => HashRef,
313             init_arg => undef,
314             default => sub { {
315             'gregorian' => {
316             },
317             } },
318             );
319              
320             has 'time_formats' => (
321             is => 'ro',
322             isa => HashRef,
323             init_arg => undef,
324             default => sub { {
325             'gregorian' => {
326             },
327             } },
328             );
329              
330             has 'datetime_formats' => (
331             is => 'ro',
332             isa => HashRef,
333             init_arg => undef,
334             default => sub { {
335             'gregorian' => {
336             },
337             } },
338             );
339              
340             has 'datetime_formats_available_formats' => (
341             is => 'ro',
342             isa => HashRef,
343             init_arg => undef,
344             default => sub { {
345             } },
346             );
347              
348             has 'datetime_formats_append_item' => (
349             is => 'ro',
350             isa => HashRef,
351             init_arg => undef,
352             default => sub { {
353             } },
354             );
355              
356             has 'datetime_formats_interval' => (
357             is => 'ro',
358             isa => HashRef,
359             init_arg => undef,
360             default => sub { {
361             'gregorian' => {
362             Md => {
363             M => q{d/M 'al' d/M},
364             d => q{d/M 'al' d/M},
365             },
366             h => {
367             a => q{h a 'a' h a},
368             h => q{h 'a' h a},
369             },
370             hm => {
371             a => q{h:mm a 'a' h:mm a},
372             h => q{h:mm 'a' h:mm a},
373             m => q{h:mm 'a' h:mm a},
374             },
375             yMMM => {
376             M => q{MMM 'a' MMM y},
377             y => q{MMM 'de' y 'a' MMM 'de' y},
378             },
379             yMMMM => {
380             M => q{MMMM 'a' MMMM 'de' y},
381             y => q{MMMM 'de' y 'a' MMMM 'de' y},
382             },
383             yMMMd => {
384             M => q{d 'de' MMM 'al' d 'de' MMM 'de' y},
385             },
386             yMd => {
387             M => q{d/M/y 'al' d/M/y},
388             d => q{d/M/y 'al' d/M/y},
389             y => q{d/M/y 'al' d/M/y},
390             },
391             },
392             } },
393             );
394              
395 1     1   4488 no Moo;
  1         2  
  1         7  
396              
397             1;
398              
399             # vim: tabstop=4