File Coverage

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