File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Uy.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::Uy - Package for language Spanish
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Es::Any::Uy;
10             # This file auto generated from Data\common\main\es_UY.xml
11             # on Fri 13 Oct 9:14:15 am GMT
12              
13 1     1   878 use strict;
  1         18  
  1         27  
14 1     1   5 use warnings;
  1         2  
  1         20  
15 1     1   4 use version;
  1         3  
  1         4  
16              
17             our $VERSION = version->declare('v0.34.2');
18              
19 1     1   86 use v5.10.1;
  1         3  
20 1     1   6 use mro 'c3';
  1         2  
  1         5  
21 1     1   32 use utf8;
  1         2  
  1         5  
22 1     1   28 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         11  
23 1     1   95 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         13  
24 1     1   880 use Moo;
  1         3  
  1         5  
25              
26             extends('Locale::CLDR::Locales::Es::Any::419');
27             has 'number_symbols' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => sub { {
32             'latn' => {
33             'decimal' => q(,),
34             'group' => q(.),
35             },
36             } }
37             );
38              
39             has 'number_currency_formats' => (
40             is => 'ro',
41             isa => HashRef,
42             init_arg => undef,
43             default => sub { {
44             'latn' => {
45             'pattern' => {
46             'default' => {
47             'accounting' => {
48             'negative' => '(¤ #,##0.00)',
49             'positive' => '¤ #,##0.00',
50             },
51             'standard' => {
52             'positive' => '¤ #,##0.00',
53             },
54             },
55             },
56             },
57             } },
58             );
59              
60             has 'currencies' => (
61             is => 'ro',
62             isa => HashRef,
63             init_arg => undef,
64             default => sub { {
65             'USD' => {
66             symbol => 'US$',
67             },
68             'UYU' => {
69             symbol => '$',
70             },
71             'UYW' => {
72             symbol => 'UP',
73             },
74             } },
75             );
76              
77              
78             has 'calendar_months' => (
79             is => 'ro',
80             isa => HashRef,
81             init_arg => undef,
82             default => sub { {
83             'gregorian' => {
84             'format' => {
85             abbreviated => {
86             nonleap => [
87             'ene.',
88             'feb.',
89             'mar.',
90             'abr.',
91             'may.',
92             'jun.',
93             'jul.',
94             'ago.',
95             'set.',
96             'oct.',
97             'nov.',
98             'dic.'
99             ],
100             leap => [
101            
102             ],
103             },
104             wide => {
105             nonleap => [
106             'enero',
107             'febrero',
108             'marzo',
109             'abril',
110             'mayo',
111             'junio',
112             'julio',
113             'agosto',
114             'setiembre',
115             'octubre',
116             'noviembre',
117             'diciembre'
118             ],
119             leap => [
120            
121             ],
122             },
123             },
124             'stand-alone' => {
125             abbreviated => {
126             nonleap => [
127             'Ene.',
128             'Feb.',
129             'Mar.',
130             'Abr.',
131             'May.',
132             'Jun.',
133             'Jul.',
134             'Ago.',
135             'Set.',
136             'Oct.',
137             'Nov.',
138             'Dic.'
139             ],
140             leap => [
141            
142             ],
143             },
144             wide => {
145             nonleap => [
146             'Enero',
147             'Febrero',
148             'Marzo',
149             'Abril',
150             'Mayo',
151             'Junio',
152             'Julio',
153             'Agosto',
154             'Setiembre',
155             'Octubre',
156             'Noviembre',
157             'Diciembre'
158             ],
159             leap => [
160            
161             ],
162             },
163             },
164             },
165             } },
166             );
167              
168             has 'day_period_data' => (
169             is => 'ro',
170             isa => CodeRef,
171             init_arg => undef,
172             default => sub { sub {
173             # Time in hhmm format
174             my ($self, $type, $time, $day_period_type) = @_;
175             $day_period_type //= 'default';
176             SWITCH:
177             for ($type) {
178             if ($_ eq 'gregorian') {
179             if($day_period_type eq 'default') {
180             return 'noon' if $time == 1200;
181             return 'evening1' if $time >= 1200
182             && $time < 2000;
183             return 'morning1' if $time >= 0
184             && $time < 600;
185             return 'morning2' if $time >= 600
186             && $time < 1200;
187             return 'night1' if $time >= 2000
188             && $time < 2400;
189             }
190             if($day_period_type eq 'selection') {
191             return 'evening1' if $time >= 1200
192             && $time < 2000;
193             return 'morning1' if $time >= 0
194             && $time < 600;
195             return 'morning2' if $time >= 600
196             && $time < 1200;
197             return 'night1' if $time >= 2000
198             && $time < 2400;
199             }
200             last SWITCH;
201             }
202             }
203             } },
204             );
205              
206             around day_period_data => sub {
207             my ($orig, $self) = @_;
208             return $self->$orig;
209             };
210              
211             has 'day_periods' => (
212             is => 'ro',
213             isa => HashRef,
214             init_arg => undef,
215             default => sub { {
216             'gregorian' => {
217             'format' => {
218             'abbreviated' => {
219             'am' => q{a. m.},
220             'pm' => q{p. m.},
221             },
222             'wide' => {
223             'am' => q{a. m.},
224             'pm' => q{p. m.},
225             },
226             },
227             'stand-alone' => {
228             'abbreviated' => {
229             'am' => q{a. m.},
230             'pm' => q{p. m.},
231             },
232             'narrow' => {
233             'am' => q{a. m.},
234             'pm' => q{p. m.},
235             },
236             'wide' => {
237             'am' => q{a. m.},
238             'pm' => q{p. m.},
239             },
240             },
241             },
242             } },
243             );
244              
245             has 'eras' => (
246             is => 'ro',
247             isa => HashRef,
248             init_arg => undef,
249             default => sub { {
250             'gregorian' => {
251             },
252             } },
253             );
254              
255             has 'date_formats' => (
256             is => 'ro',
257             isa => HashRef,
258             init_arg => undef,
259             default => sub { {
260             'gregorian' => {
261             },
262             } },
263             );
264              
265             has 'time_formats' => (
266             is => 'ro',
267             isa => HashRef,
268             init_arg => undef,
269             default => sub { {
270             'gregorian' => {
271             },
272             } },
273             );
274              
275             has 'datetime_formats' => (
276             is => 'ro',
277             isa => HashRef,
278             init_arg => undef,
279             default => sub { {
280             'gregorian' => {
281             },
282             } },
283             );
284              
285             has 'datetime_formats_available_formats' => (
286             is => 'ro',
287             isa => HashRef,
288             init_arg => undef,
289             default => sub { {
290             } },
291             );
292              
293             has 'datetime_formats_append_item' => (
294             is => 'ro',
295             isa => HashRef,
296             init_arg => undef,
297             default => sub { {
298             } },
299             );
300              
301             has 'datetime_formats_interval' => (
302             is => 'ro',
303             isa => HashRef,
304             init_arg => undef,
305             default => sub { {
306             } },
307             );
308              
309             has 'time_zone_names' => (
310             is => 'ro',
311             isa => HashRef,
312             init_arg => undef,
313             default => sub { {
314             'Uruguay' => {
315             short => {
316             'daylight' => q#UYST#,
317             'generic' => q#UYT#,
318             'standard' => q#UYT#,
319             },
320             },
321             } }
322             );
323 1     1   1128 no Moo;
  1         3  
  1         4  
324              
325             1;
326              
327             # vim: tabstop=4