File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Do.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::Do - Package for language Spanish
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/es_DO.xml
10             # on Mon 11 Apr 5:27:23 pm GMT
11              
12             use strict;
13 1     1   1168 use warnings;
  1         1  
  1         27  
14 1     1   4 use version;
  1         2  
  1         24  
15 1     1   5  
  1         2  
  1         5  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 1     1   89 use mro 'c3';
  1         3  
20 1     1   6 use utf8;
  1         2  
  1         6  
21 1     1   34 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         8  
22 1     1   33 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         12  
23 1     1   118 use Moo;
  1         1  
  1         8  
24 1     1   879  
  1         2  
  1         7  
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             'eu' => 'euskera',
37             'grc' => 'griego antiguo',
38             'lo' => 'lao',
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             'TA' => 'Tristán de Acuña',
66             'TL' => 'Timor-Leste',
67             'UM' => 'Islas menores alejadas de EE. UU.',
68              
69             }
70             },
71             );
72              
73             has 'units' => (
74             is => 'ro',
75             isa => HashRef[HashRef[HashRef[Str]]],
76             init_arg => undef,
77             default => sub { {
78             'long' => {
79             'ampere' => {
80             'name' => q(amperios),
81             'one' => q({0} amperio),
82             'other' => q({0} amperios),
83             },
84             'milliampere' => {
85             'name' => q(miliamperios),
86             'one' => q({0} miliamperio),
87             'other' => q({0} miliamperios),
88             },
89             'ohm' => {
90             'one' => q({0} ohmio),
91             'other' => q({0} ohmios),
92             },
93             'volt' => {
94             'one' => q({0} voltio),
95             'other' => q({0} voltios),
96             },
97             },
98             'narrow' => {
99             'day' => {
100             'one' => q({0}d.),
101             'other' => q({0}d.),
102             },
103             'month' => {
104             'one' => q({0}m.),
105             'other' => q({0}m.),
106             },
107             },
108             'short' => {
109             'day' => {
110             'name' => q(d.),
111             },
112             'second' => {
113             'name' => q(seg.),
114             'one' => q({0} seg.),
115             'other' => q({0} seg.),
116             },
117             'volt' => {
118             'name' => q(voltios),
119             },
120             'watt' => {
121             'name' => q(vatios),
122             },
123             },
124             } }
125             );
126              
127             has 'listPatterns' => (
128             is => 'ro',
129             isa => HashRef,
130             init_arg => undef,
131             default => sub { {
132             end => q({0} y {1}),
133             } }
134             );
135              
136             has 'number_currency_formats' => (
137             is => 'ro',
138             isa => HashRef,
139             init_arg => undef,
140             default => sub { {
141             'latn' => {
142             'pattern' => {
143             'default' => {
144             'accounting' => {
145             'negative' => '(¤#,##0.00)',
146             'positive' => '¤#,##0.00',
147             },
148             },
149             },
150             },
151             } },
152             );
153              
154             has 'currencies' => (
155             is => 'ro',
156             isa => HashRef,
157             init_arg => undef,
158             default => sub { {
159             'DOP' => {
160             symbol => 'RD$',
161             },
162             'USD' => {
163             symbol => 'US$',
164             },
165             } },
166             );
167              
168              
169             has 'calendar_days' => (
170             is => 'ro',
171             isa => HashRef,
172             init_arg => undef,
173             default => sub { {
174             'gregorian' => {
175             'format' => {
176             narrow => {
177             mon => 'L',
178             tue => 'M',
179             wed => 'M',
180             thu => 'J',
181             fri => 'V',
182             sat => 'S',
183             sun => 'D'
184             },
185             },
186             },
187             } },
188             );
189              
190             has 'calendar_quarters' => (
191             is => 'ro',
192             isa => HashRef,
193             init_arg => undef,
194             default => sub { {
195             'gregorian' => {
196             'format' => {
197             abbreviated => {0 => 'Q1',
198             1 => 'Q2',
199             2 => 'Q3',
200             3 => 'Q4'
201             },
202             },
203             'stand-alone' => {
204             abbreviated => {0 => 'Q1',
205             1 => 'Q2',
206             2 => 'Q3',
207             3 => 'Q4'
208             },
209             },
210             },
211             } },
212             );
213              
214             has 'day_period_data' => (
215             is => 'ro',
216             isa => CodeRef,
217             init_arg => undef,
218             default => sub { sub {
219             # Time in hhmm format
220             my ($self, $type, $time, $day_period_type) = @_;
221             $day_period_type //= 'default';
222             SWITCH:
223             for ($type) {
224             if ($_ eq 'generic') {
225             if($day_period_type eq 'default') {
226             return 'noon' if $time == 1200;
227             return 'evening1' if $time >= 1200
228             && $time < 2000;
229             return 'morning1' if $time >= 0
230             && $time < 600;
231             return 'morning2' if $time >= 600
232             && $time < 1200;
233             return 'night1' if $time >= 2000
234             && $time < 2400;
235             }
236             if($day_period_type eq 'selection') {
237             return 'evening1' if $time >= 1200
238             && $time < 2000;
239             return 'morning1' if $time >= 0
240             && $time < 600;
241             return 'morning2' if $time >= 600
242             && $time < 1200;
243             return 'night1' if $time >= 2000
244             && $time < 2400;
245             }
246             last SWITCH;
247             }
248             if ($_ eq 'gregorian') {
249             if($day_period_type eq 'default') {
250             return 'noon' if $time == 1200;
251             return 'evening1' if $time >= 1200
252             && $time < 2000;
253             return 'morning1' if $time >= 0
254             && $time < 600;
255             return 'morning2' if $time >= 600
256             && $time < 1200;
257             return 'night1' if $time >= 2000
258             && $time < 2400;
259             }
260             if($day_period_type eq 'selection') {
261             return 'evening1' if $time >= 1200
262             && $time < 2000;
263             return 'morning1' if $time >= 0
264             && $time < 600;
265             return 'morning2' if $time >= 600
266             && $time < 1200;
267             return 'night1' if $time >= 2000
268             && $time < 2400;
269             }
270             last SWITCH;
271             }
272             }
273             } },
274             );
275              
276             around day_period_data => sub {
277             my ($orig, $self) = @_;
278             return $self->$orig;
279             };
280              
281             has 'day_periods' => (
282             is => 'ro',
283             isa => HashRef,
284             init_arg => undef,
285             default => sub { {
286             'gregorian' => {
287             'format' => {
288             'abbreviated' => {
289             'am' => q{a. m.},
290             'pm' => q{p. m.},
291             },
292             'narrow' => {
293             'evening1' => q{tarde},
294             'morning1' => q{día},
295             'morning2' => q{mañana},
296             'night1' => q{noche},
297             'noon' => q{mediodía},
298             },
299             'wide' => {
300             'am' => q{a. m.},
301             'pm' => q{p. m.},
302             },
303             },
304             'stand-alone' => {
305             'abbreviated' => {
306             'am' => q{a. m.},
307             'pm' => q{p. m.},
308             },
309             'narrow' => {
310             'am' => q{a. m.},
311             'noon' => q{m.},
312             'pm' => q{p. m.},
313             },
314             'wide' => {
315             'am' => q{a. m.},
316             'pm' => q{p. m.},
317             },
318             },
319             },
320             } },
321             );
322              
323             has 'eras' => (
324             is => 'ro',
325             isa => HashRef,
326             init_arg => undef,
327             default => sub { {
328             'generic' => {
329             },
330             'gregorian' => {
331             },
332             } },
333             );
334              
335             has 'date_formats' => (
336             is => 'ro',
337             isa => HashRef,
338             init_arg => undef,
339             default => sub { {
340             'generic' => {
341             'medium' => q{dd/MM/y G},
342             },
343             'gregorian' => {
344             },
345             } },
346             );
347              
348             has 'time_formats' => (
349             is => 'ro',
350             isa => HashRef,
351             init_arg => undef,
352             default => sub { {
353             'generic' => {
354             },
355             'gregorian' => {
356             'full' => q{h:mm:ss a zzzz},
357             'long' => q{h:mm:ss a z},
358             'medium' => q{h:mm:ss a},
359             'short' => q{h:mm a},
360             },
361             } },
362             );
363              
364             has 'datetime_formats' => (
365             is => 'ro',
366             isa => HashRef,
367             init_arg => undef,
368             default => sub { {
369             'generic' => {
370             },
371             'gregorian' => {
372             },
373             } },
374             );
375              
376             has 'datetime_formats_available_formats' => (
377             is => 'ro',
378             isa => HashRef,
379             init_arg => undef,
380             default => sub { {
381             'gregorian' => {
382             yMMMd => q{d MMM 'de' y},
383             },
384             } },
385             );
386              
387             has 'datetime_formats_append_item' => (
388             is => 'ro',
389             isa => HashRef,
390             init_arg => undef,
391             default => sub { {
392             } },
393             );
394              
395             has 'datetime_formats_interval' => (
396             is => 'ro',
397             isa => HashRef,
398             init_arg => undef,
399             default => sub { {
400             } },
401             );
402              
403             no Moo;
404 1     1   1471  
  1         2  
  1         5  
405             1;
406              
407             # vim: tabstop=4