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             package Locale::CLDR::Locales::Es::Any::Ni;
10             # This file auto generated from Data\common\main\es_NI.xml
11             # on Sun 16 Dec 4:13:59 pm GMT
12              
13 1     1   1214 use strict;
  1         4  
  1         27  
14 1     1   6 use warnings;
  1         2  
  1         26  
15 1     1   5 use version;
  1         3  
  1         7  
16              
17             our $VERSION = version->declare('v0.34.0');
18              
19 1     1   108 use v5.10.1;
  1         4  
20 1     1   5 use mro 'c3';
  1         3  
  1         7  
21 1     1   40 use utf8;
  1         2  
  1         7  
22 1     1   33 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         12  
23 1     1   118 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         3  
  1         9  
24 1     1   960 use Moo;
  1         2  
  1         5  
25              
26             extends('Locale::CLDR::Locales::Es::Any::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             'lo' => 'lao',
40             'nso' => 'sotho septentrional',
41             'pa' => 'punyabí',
42             'ss' => 'siswati',
43             'sw' => 'suajili',
44             'sw_CD' => 'suajili del Congo',
45             'tn' => 'setswana',
46             'wo' => 'wolof',
47             'zgh' => 'tamazight marroquí estándar',
48              
49             );
50             if (@_) {
51             return $languages{$_[0]};
52             }
53             return \%languages;
54             }
55             },
56             );
57              
58             has 'display_name_region' => (
59             is => 'ro',
60             isa => HashRef[Str],
61             init_arg => undef,
62             default => sub {
63             {
64             'BA' => 'Bosnia y Herzegovina',
65             'GB@alt=short' => 'RU',
66             'TA' => 'Tristán de Acuña',
67             'TL' => 'Timor-Leste',
68             'UM' => 'Islas menores alejadas de EE. UU.',
69              
70             }
71             },
72             );
73              
74             has 'currencies' => (
75             is => 'ro',
76             isa => HashRef,
77             init_arg => undef,
78             default => sub { {
79             'NIO' => {
80             symbol => 'C$',
81             },
82             } },
83             );
84              
85              
86             has 'day_period_data' => (
87             is => 'ro',
88             isa => CodeRef,
89             init_arg => undef,
90             default => sub { sub {
91             # Time in hhmm format
92             my ($self, $type, $time, $day_period_type) = @_;
93             $day_period_type //= 'default';
94             SWITCH:
95             for ($type) {
96             if ($_ eq 'gregorian') {
97             if($day_period_type eq 'default') {
98             return 'noon' if $time == 1200;
99             return 'night1' if $time >= 2000
100             && $time < 2400;
101             return 'morning2' if $time >= 600
102             && $time < 1200;
103             return 'evening1' if $time >= 1200
104             && $time < 2000;
105             return 'morning1' if $time >= 0
106             && $time < 600;
107             }
108             if($day_period_type eq 'selection') {
109             return 'morning1' if $time >= 0
110             && $time < 600;
111             return 'evening1' if $time >= 1200
112             && $time < 2000;
113             return 'morning2' if $time >= 600
114             && $time < 1200;
115             return 'night1' if $time >= 2000
116             && $time < 2400;
117             }
118             last SWITCH;
119             }
120             }
121             } },
122             );
123              
124             around day_period_data => sub {
125             my ($orig, $self) = @_;
126             return $self->$orig;
127             };
128              
129             has 'day_periods' => (
130             is => 'ro',
131             isa => HashRef,
132             init_arg => undef,
133             default => sub { {
134             'gregorian' => {
135             'format' => {
136             'wide' => {
137             'pm' => q{p. m.},
138             'am' => q{a. m.},
139             },
140             'abbreviated' => {
141             'pm' => q{p. m.},
142             'am' => q{a. m.},
143             },
144             },
145             'stand-alone' => {
146             'wide' => {
147             'am' => q{a. m.},
148             'pm' => q{p. m.},
149             },
150             'narrow' => {
151             'pm' => q{p. m.},
152             'am' => q{a. m.},
153             },
154             'abbreviated' => {
155             'pm' => q{p. m.},
156             'am' => q{a. m.},
157             },
158             },
159             },
160             } },
161             );
162              
163             has 'eras' => (
164             is => 'ro',
165             isa => HashRef,
166             init_arg => undef,
167             default => sub { {
168             'gregorian' => {
169             },
170             } },
171             );
172              
173             has 'date_formats' => (
174             is => 'ro',
175             isa => HashRef,
176             init_arg => undef,
177             default => sub { {
178             'gregorian' => {
179             },
180             } },
181             );
182              
183             has 'time_formats' => (
184             is => 'ro',
185             isa => HashRef,
186             init_arg => undef,
187             default => sub { {
188             'gregorian' => {
189             },
190             } },
191             );
192              
193             has 'datetime_formats' => (
194             is => 'ro',
195             isa => HashRef,
196             init_arg => undef,
197             default => sub { {
198             'gregorian' => {
199             },
200             } },
201             );
202              
203             has 'datetime_formats_available_formats' => (
204             is => 'ro',
205             isa => HashRef,
206             init_arg => undef,
207             default => sub { {
208             } },
209             );
210              
211             has 'datetime_formats_append_item' => (
212             is => 'ro',
213             isa => HashRef,
214             init_arg => undef,
215             default => sub { {
216             } },
217             );
218              
219             has 'datetime_formats_interval' => (
220             is => 'ro',
221             isa => HashRef,
222             init_arg => undef,
223             default => sub { {
224             } },
225             );
226              
227 1     1   1098 no Moo;
  1         2  
  1         4  
228              
229             1;
230              
231             # vim: tabstop=4