File Coverage

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