File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Do.pm
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


line stmt bran cond sub pod time code
1             =head1
2              
3             Locale::CLDR::Locales::Es::Any::Do - Package for language Spanish
4              
5             =cut
6              
7             package Locale::CLDR::Locales::Es::Any::Do;
8             # This file auto generated from Data\common\main\es_DO.xml
9             # on Sun 24 Apr 8:25:37 am GMT
10              
11 1     1   1653 use version;
  1         3  
  1         9  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   127 use v5.10.1;
  1         3  
16 1     1   6 use mro 'c3';
  1         2  
  1         16  
17 1     1   56 use utf8;
  1         1  
  1         12  
18 1     1   41 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         1  
  1         19  
19              
20 1     1   160 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         3  
  1         13  
21 1     1   1198 use Moo;
  1         2  
  1         9  
22              
23             extends('Locale::CLDR::Locales::Es::Any::419');
24             has 'units' => (
25             is => 'ro',
26             isa => HashRef[HashRef[HashRef[Str]]],
27             init_arg => undef,
28             default => sub { {
29             'long' => {
30             'ampere' => {
31             'name' => q(amperios),
32             'one' => q({0} amperio),
33             'other' => q({0} amperios),
34             },
35             'milliampere' => {
36             'name' => q(miliamperios),
37             'one' => q({0} miliamperio),
38             'other' => q({0} miliamperios),
39             },
40             'ohm' => {
41             'one' => q({0} ohmio),
42             'other' => q({0} ohmios),
43             },
44             'volt' => {
45             'one' => q({0} voltio),
46             'other' => q({0} voltios),
47             },
48             },
49             'narrow' => {
50             'day' => {
51             'one' => q({0}d.),
52             'other' => q({0}d.),
53             },
54             'month' => {
55             'one' => q({0}m.),
56             'other' => q({0}m.),
57             },
58             },
59             'short' => {
60             'day' => {
61             'name' => q(d.),
62             },
63             'second' => {
64             'name' => q(seg.),
65             'one' => q({0} seg.),
66             'other' => q({0} seg.),
67             },
68             'volt' => {
69             'name' => q(voltios),
70             },
71             'watt' => {
72             'name' => q(vatios),
73             },
74             },
75             } }
76             );
77              
78             has 'listPatterns' => (
79             is => 'ro',
80             isa => HashRef,
81             init_arg => undef,
82             default => sub { {
83             end => q({0} y {1}),
84             } }
85             );
86              
87             has 'number_formats' => (
88             is => 'ro',
89             isa => HashRef,
90             init_arg => undef,
91             default => sub { {
92             percentFormat => {
93             'default' => {
94             'standard' => {
95             '' => '#,##0%',
96             },
97             },
98             },
99             } },
100             );
101              
102             has 'number_currency_formats' => (
103             is => 'ro',
104             isa => HashRef,
105             init_arg => undef,
106             default => sub { {
107             'latn' => {
108             'pattern' => {
109             'default' => {
110             'accounting' => {
111             'negative' => '(¤#,##0.00)',
112             'positive' => '¤#,##0.00',
113             },
114             },
115             },
116             },
117             } },
118             );
119              
120             has 'currencies' => (
121             is => 'ro',
122             isa => HashRef,
123             init_arg => undef,
124             default => sub { {
125             'DOP' => {
126             symbol => 'RD$',
127             },
128             'USD' => {
129             symbol => 'US$',
130             },
131             } },
132             );
133              
134              
135             has 'calendar_quarters' => (
136             is => 'ro',
137             isa => HashRef,
138             init_arg => undef,
139             default => sub { {
140             'gregorian' => {
141             'format' => {
142             abbreviated => {0 => 'Q1',
143             1 => 'Q2',
144             2 => 'Q3',
145             3 => 'Q4'
146             },
147             },
148             'stand-alone' => {
149             abbreviated => {0 => 'Q1',
150             1 => 'Q2',
151             2 => 'Q3',
152             3 => 'Q4'
153             },
154             },
155             },
156             } },
157             );
158              
159             has 'day_period_data' => (
160             is => 'ro',
161             isa => CodeRef,
162             init_arg => undef,
163             default => sub { sub {
164             # Time in hhmm format
165             my ($self, $type, $time, $day_period_type) = @_;
166             $day_period_type //= 'default';
167             SWITCH:
168             for ($type) {
169             if ($_ eq 'generic') {
170             if($day_period_type eq 'default') {
171             return 'noon' if $time == 1200;
172             return 'evening1' if $time >= 1200
173             && $time < 2000;
174             return 'night1' if $time >= 2000
175             && $time < 2400;
176             return 'morning2' if $time >= 600
177             && $time < 1200;
178             return 'morning1' if $time >= 0
179             && $time < 600;
180             }
181             if($day_period_type eq 'selection') {
182             return 'night1' if $time >= 2000
183             && $time < 2400;
184             return 'morning2' if $time >= 600
185             && $time < 1200;
186             return 'morning1' if $time >= 0
187             && $time < 600;
188             return 'evening1' if $time >= 1200
189             && $time < 2000;
190             }
191             last SWITCH;
192             }
193             if ($_ eq 'gregorian') {
194             if($day_period_type eq 'default') {
195             return 'noon' if $time == 1200;
196             return 'evening1' if $time >= 1200
197             && $time < 2000;
198             return 'night1' if $time >= 2000
199             && $time < 2400;
200             return 'morning2' if $time >= 600
201             && $time < 1200;
202             return 'morning1' if $time >= 0
203             && $time < 600;
204             }
205             if($day_period_type eq 'selection') {
206             return 'night1' if $time >= 2000
207             && $time < 2400;
208             return 'morning2' if $time >= 600
209             && $time < 1200;
210             return 'morning1' if $time >= 0
211             && $time < 600;
212             return 'evening1' if $time >= 1200
213             && $time < 2000;
214             }
215             last SWITCH;
216             }
217             }
218             } },
219             );
220              
221             around day_period_data => sub {
222             my ($orig, $self) = @_;
223             return $self->$orig;
224             };
225              
226             has 'day_periods' => (
227             is => 'ro',
228             isa => HashRef,
229             init_arg => undef,
230             default => sub { {
231             'gregorian' => {
232             'format' => {
233             'narrow' => {
234             'morning2' => q{mañana},
235             'night1' => q{noche},
236             'morning1' => q{día},
237             'noon' => q{mediodía},
238             'evening1' => q{tarde},
239             },
240             },
241             'stand-alone' => {
242             'narrow' => {
243             'noon' => q{m.},
244             },
245             },
246             },
247             } },
248             );
249              
250             has 'eras' => (
251             is => 'ro',
252             isa => HashRef,
253             init_arg => undef,
254             default => sub { {
255             'generic' => {
256             },
257             'gregorian' => {
258             },
259             } },
260             );
261              
262             has 'date_formats' => (
263             is => 'ro',
264             isa => HashRef,
265             init_arg => undef,
266             default => sub { {
267             'generic' => {
268             'medium' => q{dd/MM/y G},
269             },
270             'gregorian' => {
271             },
272             } },
273             );
274              
275             has 'time_formats' => (
276             is => 'ro',
277             isa => HashRef,
278             init_arg => undef,
279             default => sub { {
280             'generic' => {
281             },
282             'gregorian' => {
283             'full' => q{h:mm:ss a zzzz},
284             'long' => q{h:mm:ss a z},
285             'medium' => q{h:mm:ss a},
286             'short' => q{h:mm a},
287             },
288             } },
289             );
290              
291             has 'datetime_formats' => (
292             is => 'ro',
293             isa => HashRef,
294             init_arg => undef,
295             default => sub { {
296             'generic' => {
297             },
298             'gregorian' => {
299             },
300             } },
301             );
302              
303             has 'datetime_formats_available_formats' => (
304             is => 'ro',
305             isa => HashRef,
306             init_arg => undef,
307             default => sub { {
308             'gregorian' => {
309             yMMMd => q{d MMM 'de' y},
310             },
311             } },
312             );
313              
314             has 'datetime_formats_append_item' => (
315             is => 'ro',
316             isa => HashRef,
317             init_arg => undef,
318             default => sub { {
319             } },
320             );
321              
322             has 'datetime_formats_interval' => (
323             is => 'ro',
324             isa => HashRef,
325             init_arg => undef,
326             default => sub { {
327             } },
328             );
329              
330 1     1   7211 no Moo;
  1         4  
  1         7  
331              
332             1;
333              
334             # vim: tabstop=4