File Coverage

blib/lib/Locale/CLDR/Locales/Es/Latn/Pr.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 NAME
4              
5             Locale::CLDR::Locales::Es::Latn::Pr - Package for language Spanish
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Es::Latn::Pr;
10             # This file auto generated from Data\common\main\es_PR.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1801 use strict;
  1         3  
  1         47  
14 1     1   7 use warnings;
  1         2  
  1         67  
15 1     1   8 use version;
  1         3  
  1         9  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   208 use v5.12.0;
  1         5  
20 1     1   8 use mro 'c3';
  1         3  
  1         7  
21 1     1   58 use utf8;
  1         3  
  1         9  
22 1     1   44 use feature 'unicode_strings';
  1         3  
  1         219  
23 1     1   10 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         10  
24 1     1   3191 use Moo;
  1         3  
  1         8  
25              
26             extends('Locale::CLDR::Locales::Es::Latn::419');
27             has 'display_name_language' => (
28             is => 'ro',
29             isa => CodeRef,
30             init_arg => undef,
31             default => sub {
32             sub {
33             my %languages = (
34             'ace' => 'acehnés',
35             'arp' => 'arapaho',
36             'bho' => 'bhojpuri',
37             'grc' => 'griego antiguo',
38             'nso' => 'sotho septentrional',
39             'ss' => 'siswati',
40             'wo' => 'wolof',
41              
42             );
43             if (@_) {
44             return $languages{$_[0]};
45             }
46             return \%languages;
47             }
48             },
49             );
50              
51             has 'display_name_region' => (
52             is => 'ro',
53             isa => HashRef[Str],
54             init_arg => undef,
55             default => sub {
56             {
57             'UM' => 'Islas menores alejadas de EE. UU.',
58              
59             }
60             },
61             );
62              
63             has 'units' => (
64             is => 'ro',
65             isa => HashRef[HashRef[HashRef[Str]]],
66             init_arg => undef,
67             default => sub { {
68             'narrow' => {
69             # Long Unit Identifier
70             'temperature-fahrenheit' => {
71             'one' => q({0}°),
72             'other' => q({0}°),
73             },
74             # Core Unit Identifier
75             'fahrenheit' => {
76             'one' => q({0}°),
77             'other' => q({0}°),
78             },
79             },
80             } }
81             );
82              
83             has 'currencies' => (
84             is => 'ro',
85             isa => HashRef,
86             init_arg => undef,
87             default => sub { {
88             'USD' => {
89             symbol => '$',
90             },
91             } },
92             );
93              
94              
95             has 'day_period_data' => (
96             is => 'ro',
97             isa => CodeRef,
98             init_arg => undef,
99             default => sub { sub {
100             # Time in hhmm format
101             my ($self, $type, $time, $day_period_type) = @_;
102             $day_period_type //= 'default';
103             SWITCH:
104             for ($type) {
105             if ($_ eq 'generic') {
106             if($day_period_type eq 'default') {
107             return 'noon' if $time == 1200;
108             return 'evening1' if $time >= 1200
109             && $time < 2000;
110             return 'morning1' if $time >= 0
111             && $time < 600;
112             return 'morning2' if $time >= 600
113             && $time < 1200;
114             return 'night1' if $time >= 2000
115             && $time < 2400;
116             }
117             if($day_period_type eq 'selection') {
118             return 'evening1' if $time >= 1200
119             && $time < 2000;
120             return 'morning1' if $time >= 0
121             && $time < 600;
122             return 'morning2' if $time >= 600
123             && $time < 1200;
124             return 'night1' if $time >= 2000
125             && $time < 2400;
126             }
127             last SWITCH;
128             }
129             if ($_ eq 'gregorian') {
130             if($day_period_type eq 'default') {
131             return 'noon' if $time == 1200;
132             return 'evening1' if $time >= 1200
133             && $time < 2000;
134             return 'morning1' if $time >= 0
135             && $time < 600;
136             return 'morning2' if $time >= 600
137             && $time < 1200;
138             return 'night1' if $time >= 2000
139             && $time < 2400;
140             }
141             if($day_period_type eq 'selection') {
142             return 'evening1' if $time >= 1200
143             && $time < 2000;
144             return 'morning1' if $time >= 0
145             && $time < 600;
146             return 'morning2' if $time >= 600
147             && $time < 1200;
148             return 'night1' if $time >= 2000
149             && $time < 2400;
150             }
151             last SWITCH;
152             }
153             }
154             } },
155             );
156              
157             around day_period_data => sub {
158             my ($orig, $self) = @_;
159             return $self->$orig;
160             };
161              
162             has 'day_periods' => (
163             is => 'ro',
164             isa => HashRef,
165             init_arg => undef,
166             default => sub { {
167             'gregorian' => {
168             'format' => {
169             'abbreviated' => {
170             'am' => q{a. m.},
171             'pm' => q{p. m.},
172             },
173             'wide' => {
174             'am' => q{a. m.},
175             'pm' => q{p. m.},
176             },
177             },
178             'stand-alone' => {
179             'abbreviated' => {
180             'am' => q{a. m.},
181             'pm' => q{p. m.},
182             },
183             'narrow' => {
184             'am' => q{a. m.},
185             'pm' => q{p. m.},
186             },
187             'wide' => {
188             'am' => q{a. m.},
189             'pm' => q{p. m.},
190             },
191             },
192             },
193             } },
194             );
195              
196             has 'eras' => (
197             is => 'ro',
198             isa => HashRef,
199             init_arg => undef,
200             default => sub { {
201             'generic' => {
202             },
203             'gregorian' => {
204             },
205             } },
206             );
207              
208             has 'date_formats' => (
209             is => 'ro',
210             isa => HashRef,
211             init_arg => undef,
212             default => sub { {
213             'generic' => {
214             'medium' => q{MM/dd/y G},
215             'short' => q{MM/dd/yy GGGGG},
216             },
217             'gregorian' => {
218             'medium' => q{MM/dd/y},
219             'short' => q{MM/dd/yy},
220             },
221             } },
222             );
223              
224             has 'time_formats' => (
225             is => 'ro',
226             isa => HashRef,
227             init_arg => undef,
228             default => sub { {
229             'generic' => {
230             },
231             'gregorian' => {
232             },
233             } },
234             );
235              
236             has 'datetime_formats' => (
237             is => 'ro',
238             isa => HashRef,
239             init_arg => undef,
240             default => sub { {
241             'generic' => {
242             },
243             'gregorian' => {
244             },
245             } },
246             );
247              
248             has 'datetime_formats_available_formats' => (
249             is => 'ro',
250             isa => HashRef,
251             init_arg => undef,
252             default => sub { {
253             'generic' => {
254             MEd => q{E, MM/dd},
255             Md => q{MM/dd},
256             yyyyM => q{MM/y G},
257             yyyyMEd => q{E MM/dd/y G},
258             yyyyMd => q{MM/dd/y G},
259             },
260             'gregorian' => {
261             MEd => q{E, MM/dd},
262             Md => q{MM/dd},
263             yM => q{MM/y},
264             yMEd => q{E MM/dd/y},
265             yMd => q{MM/dd/y},
266             },
267             } },
268             );
269              
270             has 'datetime_formats_append_item' => (
271             is => 'ro',
272             isa => HashRef,
273             init_arg => undef,
274             default => sub { {
275             } },
276             );
277              
278             has 'datetime_formats_interval' => (
279             is => 'ro',
280             isa => HashRef,
281             init_arg => undef,
282             default => sub { {
283             'generic' => {
284             Hm => {
285             H => q{HH:mm–HH:mm},
286             m => q{HH:mm–HH:mm},
287             },
288             Hmv => {
289             H => q{HH:mm–HH:mm v},
290             m => q{HH:mm–HH:mm v},
291             },
292             MEd => {
293             M => q{E MM/dd – E MM/dd},
294             d => q{E MM/dd – E MM/dd},
295             },
296             MMMEd => {
297             M => q{E d 'de' MMM 'al' E d 'de' MMM},
298             d => q{E d 'al' E d 'de' MMM},
299             },
300             MMMd => {
301             M => q{d 'de' MMM 'al' d 'de' MMM},
302             },
303             Md => {
304             M => q{MM/dd – MM/dd},
305             d => q{MM/dd – MM/dd},
306             },
307             fallback => '{0} a el {1}',
308             hm => {
309             h => q{h:mm–h:mm a},
310             m => q{h:mm–h:mm a},
311             },
312             hmv => {
313             h => q{h:mm–h:mm a v},
314             m => q{h:mm–h:mm a v},
315             },
316             yM => {
317             M => q{MM/y – MM/y G},
318             y => q{MM/y – MM/y G},
319             },
320             yMEd => {
321             M => q{E MM/dd/y – E MM/dd/y G},
322             d => q{E MM/dd/y – E MM/dd/y G},
323             y => q{E MM/dd/y – E MM/dd/y G},
324             },
325             yMMM => {
326             y => q{MMM 'de' y 'a' MMM 'de' y G},
327             },
328             yMMMEd => {
329             M => q{E d 'de' MMM 'al' E d 'de' MMM 'de' y G},
330             d => q{E d 'al' E d 'de' MMM 'de' y G},
331             y => q{E d 'de' MMM 'de' y 'al' E d 'de' MMM 'de' y G},
332             },
333             yMMMd => {
334             M => q{d 'de' MMM 'al' d 'de' MMM 'de' y G},
335             y => q{d 'de' MMM 'de' y 'al' d 'de' MMM 'de' y G},
336             },
337             yMd => {
338             M => q{MM/dd/y – MM/dd/y G},
339             d => q{MM/dd/y – MM/dd/y G},
340             y => q{MM/dd/y – MM/dd/y G},
341             },
342             },
343             'gregorian' => {
344             Hm => {
345             H => q{HH:mm–HH:mm},
346             m => q{HH:mm–HH:mm},
347             },
348             Hmv => {
349             H => q{HH:mm–HH:mm v},
350             m => q{HH:mm–HH:mm v},
351             },
352             Hv => {
353             H => q{HH–HH v},
354             },
355             MEd => {
356             M => q{E MM/dd – E MM/dd},
357             d => q{E MM/dd – E MM/dd},
358             },
359             MMMEd => {
360             M => q{E d 'de' MMM 'al' E d 'de' MMM},
361             d => q{E d 'al' E d 'de' MMM},
362             },
363             MMMd => {
364             M => q{d 'de' MMM 'al' d 'de' MMM},
365             },
366             Md => {
367             M => q{MM/dd – MM/dd},
368             d => q{MM/dd – MM/dd},
369             },
370             fallback => '{0} a el {1}',
371             hm => {
372             h => q{h:mm–h:mm a},
373             m => q{h:mm–h:mm a},
374             },
375             yM => {
376             M => q{MM/y – MM/y},
377             y => q{MM/y – MM/y},
378             },
379             yMEd => {
380             M => q{E MM/dd/y – E MM/dd/y},
381             d => q{E MM/dd/y – E MM/dd/y},
382             y => q{E MM/dd/y – E MM/dd/y},
383             },
384             yMMM => {
385             y => q{MMM 'de' y 'a' MMM 'de' y},
386             },
387             yMMMEd => {
388             M => q{E d 'de' MMM 'al' E d 'de' MMM 'de' y},
389             d => q{E d 'al' E d 'de' MMM 'de' y},
390             y => q{E d 'de' MMM 'de' y 'al' E d 'de' MMM 'de' y},
391             },
392             yMMMd => {
393             M => q{d 'de' MMM 'al' d 'de' MMM 'de' y},
394             y => q{d 'de' MMM 'de' y 'al' d 'de' MMM 'de' y},
395             },
396             yMd => {
397             M => q{MM/dd/y – MM/dd/y},
398             d => q{MM/dd/y – MM/dd/y},
399             y => q{MM/dd/y – MM/dd/y},
400             },
401             },
402             } },
403             );
404              
405 1     1   2806 no Moo;
  1         4  
  1         7  
406              
407             1;
408              
409             # vim: tabstop=4