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