File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Ni.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
4              
5             Locale::CLDR::Locales::Es::Any::Ni - Package for language Spanish
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/es_NI.xml
10             # on Mon 11 Apr 5:27:25 pm GMT
11              
12             use strict;
13 1     1   1052 use warnings;
  1         2  
  1         26  
14 1     1   4 use version;
  1         3  
  1         24  
15 1     1   4  
  1         3  
  1         6  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 1     1   89 use mro 'c3';
  1         2  
20 1     1   4 use utf8;
  1         2  
  1         6  
21 1     1   22 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         6  
22 1     1   28 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         33  
23 1     1   110 use Moo;
  1         2  
  1         8  
24 1     1   1332  
  1         3  
  1         7  
25             extends('Locale::CLDR::Locales::Es::Any::419');
26             has 'display_name_language' => (
27             is => 'ro',
28             isa => CodeRef,
29             init_arg => undef,
30             default => sub {
31             sub {
32             my %languages = (
33             'ace' => 'acehnés',
34             'arp' => 'arapaho',
35             'bho' => 'bhojpuri',
36             'eu' => 'euskera',
37             'grc' => 'griego antiguo',
38             'lo' => 'lao',
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             'TA' => 'Tristán de Acuña',
66             'TL' => 'Timor-Leste',
67             'UM' => 'Islas menores alejadas de EE. UU.',
68              
69             }
70             },
71             );
72              
73             has 'currencies' => (
74             is => 'ro',
75             isa => HashRef,
76             init_arg => undef,
77             default => sub { {
78             'NIO' => {
79             symbol => 'C$',
80             },
81             } },
82             );
83              
84              
85             has 'day_period_data' => (
86             is => 'ro',
87             isa => CodeRef,
88             init_arg => undef,
89             default => sub { sub {
90             # Time in hhmm format
91             my ($self, $type, $time, $day_period_type) = @_;
92             $day_period_type //= 'default';
93             SWITCH:
94             for ($type) {
95             if ($_ eq 'gregorian') {
96             if($day_period_type eq 'default') {
97             return 'noon' if $time == 1200;
98             return 'evening1' if $time >= 1200
99             && $time < 2000;
100             return 'morning1' if $time >= 0
101             && $time < 600;
102             return 'morning2' if $time >= 600
103             && $time < 1200;
104             return 'night1' if $time >= 2000
105             && $time < 2400;
106             }
107             if($day_period_type eq 'selection') {
108             return 'evening1' if $time >= 1200
109             && $time < 2000;
110             return 'morning1' if $time >= 0
111             && $time < 600;
112             return 'morning2' if $time >= 600
113             && $time < 1200;
114             return 'night1' if $time >= 2000
115             && $time < 2400;
116             }
117             last SWITCH;
118             }
119             }
120             } },
121             );
122              
123             around day_period_data => sub {
124             my ($orig, $self) = @_;
125             return $self->$orig;
126             };
127              
128             has 'day_periods' => (
129             is => 'ro',
130             isa => HashRef,
131             init_arg => undef,
132             default => sub { {
133             'gregorian' => {
134             'format' => {
135             'abbreviated' => {
136             'am' => q{a. m.},
137             'pm' => q{p. m.},
138             },
139             'wide' => {
140             'am' => q{a. m.},
141             'pm' => q{p. m.},
142             },
143             },
144             'stand-alone' => {
145             'abbreviated' => {
146             'am' => q{a. m.},
147             'pm' => q{p. m.},
148             },
149             'narrow' => {
150             'am' => q{a. m.},
151             'pm' => q{p. m.},
152             },
153             'wide' => {
154             'am' => q{a. m.},
155             'pm' => q{p. m.},
156             },
157             },
158             },
159             } },
160             );
161              
162             has 'eras' => (
163             is => 'ro',
164             isa => HashRef,
165             init_arg => undef,
166             default => sub { {
167             'gregorian' => {
168             },
169             } },
170             );
171              
172             has 'date_formats' => (
173             is => 'ro',
174             isa => HashRef,
175             init_arg => undef,
176             default => sub { {
177             'gregorian' => {
178             },
179             } },
180             );
181              
182             has 'time_formats' => (
183             is => 'ro',
184             isa => HashRef,
185             init_arg => undef,
186             default => sub { {
187             'gregorian' => {
188             },
189             } },
190             );
191              
192             has 'datetime_formats' => (
193             is => 'ro',
194             isa => HashRef,
195             init_arg => undef,
196             default => sub { {
197             'gregorian' => {
198             },
199             } },
200             );
201              
202             has 'datetime_formats_available_formats' => (
203             is => 'ro',
204             isa => HashRef,
205             init_arg => undef,
206             default => sub { {
207             } },
208             );
209              
210             has 'datetime_formats_append_item' => (
211             is => 'ro',
212             isa => HashRef,
213             init_arg => undef,
214             default => sub { {
215             } },
216             );
217              
218             has 'datetime_formats_interval' => (
219             is => 'ro',
220             isa => HashRef,
221             init_arg => undef,
222             default => sub { {
223             } },
224             );
225              
226             no Moo;
227 1     1   1053  
  1         3  
  1         4  
228             1;
229              
230             # vim: tabstop=4