File Coverage

blib/lib/Locale/CLDR/Locales/Es/Latn/Cr.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod n/a
total 43 43 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1 NAME
4              
5             Locale::CLDR::Locales::Es::Latn::Cr - Package for language Spanish
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Es::Latn::Cr;
10             # This file auto generated from Data\common\main\es_CR.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1088 use strict;
  1         1  
  1         30  
14 1     1   3 use warnings;
  1         2  
  1         37  
15 1     1   3 use version;
  1         2  
  1         5  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   93 use v5.12.0;
  1         3  
20 1     1   3 use mro 'c3';
  1         2  
  1         4  
21 1     1   35 use utf8;
  1         2  
  1         26  
22 1     1   35 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         7  
24 1     1   1660 use Moo;
  1         2  
  1         5  
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 'characters' => (
73             is => 'ro',
74             isa => HashRef,
75             init_arg => undef,
76             default => $^V ge v5.18.0
77             ? eval <<'EOT'
78             sub {
79             no warnings 'experimental::regex_sets';
80             return {
81             numbers => qr{[  \- ‑ , % ‰ + 0 1 2 3 4 5 6 7 8 9]},
82             };
83             },
84             EOT
85             : sub {
86             return {};
87             },
88 1     1   124 );
  1         3  
  1         115  
89              
90              
91             has 'number_symbols' => (
92             is => 'ro',
93             isa => HashRef,
94             init_arg => undef,
95             default => sub { {
96             'latn' => {
97             'decimal' => q(,),
98             'group' => q( ),
99             },
100             } }
101             );
102              
103             has 'currencies' => (
104             is => 'ro',
105             isa => HashRef,
106             init_arg => undef,
107             default => sub { {
108             'CRC' => {
109             symbol => '₡',
110             },
111             } },
112             );
113              
114              
115             has 'day_period_data' => (
116             is => 'ro',
117             isa => CodeRef,
118             init_arg => undef,
119             default => sub { sub {
120             # Time in hhmm format
121             my ($self, $type, $time, $day_period_type) = @_;
122             $day_period_type //= 'default';
123             SWITCH:
124             for ($type) {
125             if ($_ eq 'gregorian') {
126             if($day_period_type eq 'default') {
127             return 'noon' if $time == 1200;
128             return 'evening1' if $time >= 1200
129             && $time < 2000;
130             return 'morning1' if $time >= 0
131             && $time < 600;
132             return 'morning2' if $time >= 600
133             && $time < 1200;
134             return 'night1' if $time >= 2000
135             && $time < 2400;
136             }
137             if($day_period_type eq 'selection') {
138             return 'evening1' if $time >= 1200
139             && $time < 2000;
140             return 'morning1' if $time >= 0
141             && $time < 600;
142             return 'morning2' if $time >= 600
143             && $time < 1200;
144             return 'night1' if $time >= 2000
145             && $time < 2400;
146             }
147             last SWITCH;
148             }
149             }
150             } },
151             );
152              
153             around day_period_data => sub {
154             my ($orig, $self) = @_;
155             return $self->$orig;
156             };
157              
158             has 'day_periods' => (
159             is => 'ro',
160             isa => HashRef,
161             init_arg => undef,
162             default => sub { {
163             'gregorian' => {
164             'format' => {
165             'abbreviated' => {
166             'am' => q{a. m.},
167             'pm' => q{p. m.},
168             },
169             'wide' => {
170             'am' => q{a. m.},
171             'pm' => q{p. m.},
172             },
173             },
174             'stand-alone' => {
175             'abbreviated' => {
176             'am' => q{a. m.},
177             'pm' => q{p. m.},
178             },
179             'narrow' => {
180             'am' => q{a. m.},
181             'pm' => q{p. m.},
182             },
183             'wide' => {
184             'am' => q{a. m.},
185             'pm' => q{p. m.},
186             },
187             },
188             },
189             } },
190             );
191              
192             has 'eras' => (
193             is => 'ro',
194             isa => HashRef,
195             init_arg => undef,
196             default => sub { {
197             'gregorian' => {
198             },
199             } },
200             );
201              
202             has 'date_formats' => (
203             is => 'ro',
204             isa => HashRef,
205             init_arg => undef,
206             default => sub { {
207             'gregorian' => {
208             },
209             } },
210             );
211              
212             has 'time_formats' => (
213             is => 'ro',
214             isa => HashRef,
215             init_arg => undef,
216             default => sub { {
217             'gregorian' => {
218             },
219             } },
220             );
221              
222             has 'datetime_formats' => (
223             is => 'ro',
224             isa => HashRef,
225             init_arg => undef,
226             default => sub { {
227             'gregorian' => {
228             },
229             } },
230             );
231              
232             has 'datetime_formats_available_formats' => (
233             is => 'ro',
234             isa => HashRef,
235             init_arg => undef,
236             default => sub { {
237             } },
238             );
239              
240             has 'datetime_formats_append_item' => (
241             is => 'ro',
242             isa => HashRef,
243             init_arg => undef,
244             default => sub { {
245             } },
246             );
247              
248             has 'datetime_formats_interval' => (
249             is => 'ro',
250             isa => HashRef,
251             init_arg => undef,
252             default => sub { {
253             } },
254             );
255              
256 1     1   1190 no Moo;
  1         2  
  1         4  
257              
258             1;
259              
260             # vim: tabstop=4