File Coverage

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