File Coverage

blib/lib/Locale/CLDR/Locales/Es/Latn/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 NAME
4              
5             Locale::CLDR::Locales::Es::Latn::Ni - Package for language Spanish
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Es::Latn::Ni;
10             # This file auto generated from Data\common\main\es_NI.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1538 use strict;
  1         3  
  1         38  
14 1     1   5 use warnings;
  1         2  
  1         51  
15 1     1   6 use version;
  1         3  
  1         8  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   152 use v5.12.0;
  1         4  
20 1     1   5 use mro 'c3';
  1         3  
  1         6  
21 1     1   45 use utf8;
  1         2  
  1         8  
22 1     1   40 use feature 'unicode_strings';
  1         3  
  1         136  
23 1     1   7 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         10  
24 1     1   2944 use Moo;
  1         3  
  1         7  
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 'currencies' => (
73             is => 'ro',
74             isa => HashRef,
75             init_arg => undef,
76             default => sub { {
77             'NIO' => {
78             symbol => 'C$',
79             },
80             } },
81             );
82              
83              
84             has 'day_period_data' => (
85             is => 'ro',
86             isa => CodeRef,
87             init_arg => undef,
88             default => sub { sub {
89             # Time in hhmm format
90             my ($self, $type, $time, $day_period_type) = @_;
91             $day_period_type //= 'default';
92             SWITCH:
93             for ($type) {
94             if ($_ eq 'gregorian') {
95             if($day_period_type eq 'default') {
96             return 'noon' if $time == 1200;
97             return 'evening1' if $time >= 1200
98             && $time < 2000;
99             return 'morning1' if $time >= 0
100             && $time < 600;
101             return 'morning2' if $time >= 600
102             && $time < 1200;
103             return 'night1' if $time >= 2000
104             && $time < 2400;
105             }
106             if($day_period_type eq 'selection') {
107             return 'evening1' if $time >= 1200
108             && $time < 2000;
109             return 'morning1' if $time >= 0
110             && $time < 600;
111             return 'morning2' if $time >= 600
112             && $time < 1200;
113             return 'night1' if $time >= 2000
114             && $time < 2400;
115             }
116             last SWITCH;
117             }
118             }
119             } },
120             );
121              
122             around day_period_data => sub {
123             my ($orig, $self) = @_;
124             return $self->$orig;
125             };
126              
127             has 'day_periods' => (
128             is => 'ro',
129             isa => HashRef,
130             init_arg => undef,
131             default => sub { {
132             'gregorian' => {
133             'format' => {
134             'abbreviated' => {
135             'am' => q{a. m.},
136             'pm' => q{p. m.},
137             },
138             'wide' => {
139             'am' => q{a. m.},
140             'pm' => q{p. m.},
141             },
142             },
143             'stand-alone' => {
144             'abbreviated' => {
145             'am' => q{a. m.},
146             'pm' => q{p. m.},
147             },
148             'narrow' => {
149             'am' => q{a. m.},
150             'pm' => q{p. m.},
151             },
152             'wide' => {
153             'am' => q{a. m.},
154             'pm' => q{p. m.},
155             },
156             },
157             },
158             } },
159             );
160              
161             has 'eras' => (
162             is => 'ro',
163             isa => HashRef,
164             init_arg => undef,
165             default => sub { {
166             'gregorian' => {
167             },
168             } },
169             );
170              
171             has 'date_formats' => (
172             is => 'ro',
173             isa => HashRef,
174             init_arg => undef,
175             default => sub { {
176             'gregorian' => {
177             },
178             } },
179             );
180              
181             has 'time_formats' => (
182             is => 'ro',
183             isa => HashRef,
184             init_arg => undef,
185             default => sub { {
186             'gregorian' => {
187             },
188             } },
189             );
190              
191             has 'datetime_formats' => (
192             is => 'ro',
193             isa => HashRef,
194             init_arg => undef,
195             default => sub { {
196             'gregorian' => {
197             },
198             } },
199             );
200              
201             has 'datetime_formats_available_formats' => (
202             is => 'ro',
203             isa => HashRef,
204             init_arg => undef,
205             default => sub { {
206             } },
207             );
208              
209             has 'datetime_formats_append_item' => (
210             is => 'ro',
211             isa => HashRef,
212             init_arg => undef,
213             default => sub { {
214             } },
215             );
216              
217             has 'datetime_formats_interval' => (
218             is => 'ro',
219             isa => HashRef,
220             init_arg => undef,
221             default => sub { {
222             } },
223             );
224              
225 1     1   1724 no Moo;
  1         2  
  1         6  
226              
227             1;
228              
229             # vim: tabstop=4