File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Bo.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::Bo - Package for language Spanish
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/es_BO.xml
10             # on Mon 11 Apr 5:27:22 pm GMT
11              
12             use strict;
13 1     1   856 use warnings;
  1         2  
  1         23  
14 1     1   5 use version;
  1         3  
  1         254  
15 1     1   7  
  1         3  
  1         6  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 1     1   85 use mro 'c3';
  1         3  
20 1     1   4 use utf8;
  1         2  
  1         5  
21 1     1   34 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         3  
  1         5  
22 1     1   29 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         19  
23 1     1   99 use Moo;
  1         1  
  1         6  
24 1     1   789  
  1         2  
  1         5  
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 'number_symbols' => (
74             is => 'ro',
75             isa => HashRef,
76             init_arg => undef,
77             default => sub { {
78             'latn' => {
79             'decimal' => q(,),
80             'group' => q(.),
81             },
82             } }
83             );
84              
85             has 'currencies' => (
86             is => 'ro',
87             isa => HashRef,
88             init_arg => undef,
89             default => sub { {
90             'BOB' => {
91             symbol => 'Bs',
92             },
93             } },
94             );
95              
96              
97             has 'day_period_data' => (
98             is => 'ro',
99             isa => CodeRef,
100             init_arg => undef,
101             default => sub { sub {
102             # Time in hhmm format
103             my ($self, $type, $time, $day_period_type) = @_;
104             $day_period_type //= 'default';
105             SWITCH:
106             for ($type) {
107             if ($_ eq 'gregorian') {
108             if($day_period_type eq 'default') {
109             return 'noon' if $time == 1200;
110             return 'evening1' if $time >= 1200
111             && $time < 2000;
112             return 'morning1' if $time >= 0
113             && $time < 600;
114             return 'morning2' if $time >= 600
115             && $time < 1200;
116             return 'night1' if $time >= 2000
117             && $time < 2400;
118             }
119             if($day_period_type eq 'selection') {
120             return 'evening1' if $time >= 1200
121             && $time < 2000;
122             return 'morning1' if $time >= 0
123             && $time < 600;
124             return 'morning2' if $time >= 600
125             && $time < 1200;
126             return 'night1' if $time >= 2000
127             && $time < 2400;
128             }
129             last SWITCH;
130             }
131             }
132             } },
133             );
134              
135             around day_period_data => sub {
136             my ($orig, $self) = @_;
137             return $self->$orig;
138             };
139              
140             has 'day_periods' => (
141             is => 'ro',
142             isa => HashRef,
143             init_arg => undef,
144             default => sub { {
145             'gregorian' => {
146             'format' => {
147             'abbreviated' => {
148             'am' => q{a. m.},
149             'pm' => q{p. m.},
150             },
151             'wide' => {
152             'am' => q{a. m.},
153             'pm' => q{p. m.},
154             },
155             },
156             'stand-alone' => {
157             'abbreviated' => {
158             'am' => q{a. m.},
159             'pm' => q{p. m.},
160             },
161             'narrow' => {
162             'am' => q{a. m.},
163             'pm' => q{p. m.},
164             },
165             'wide' => {
166             'am' => q{a. m.},
167             'pm' => q{p. m.},
168             },
169             },
170             },
171             } },
172             );
173              
174             has 'eras' => (
175             is => 'ro',
176             isa => HashRef,
177             init_arg => undef,
178             default => sub { {
179             'gregorian' => {
180             },
181             } },
182             );
183              
184             has 'date_formats' => (
185             is => 'ro',
186             isa => HashRef,
187             init_arg => undef,
188             default => sub { {
189             'gregorian' => {
190             'medium' => q{d MMM 'de' y},
191             },
192             } },
193             );
194              
195             has 'time_formats' => (
196             is => 'ro',
197             isa => HashRef,
198             init_arg => undef,
199             default => sub { {
200             'gregorian' => {
201             },
202             } },
203             );
204              
205             has 'datetime_formats' => (
206             is => 'ro',
207             isa => HashRef,
208             init_arg => undef,
209             default => sub { {
210             'gregorian' => {
211             },
212             } },
213             );
214              
215             has 'datetime_formats_available_formats' => (
216             is => 'ro',
217             isa => HashRef,
218             init_arg => undef,
219             default => sub { {
220             } },
221             );
222              
223             has 'datetime_formats_append_item' => (
224             is => 'ro',
225             isa => HashRef,
226             init_arg => undef,
227             default => sub { {
228             } },
229             );
230              
231             has 'datetime_formats_interval' => (
232             is => 'ro',
233             isa => HashRef,
234             init_arg => undef,
235             default => sub { {
236             } },
237             );
238              
239             has 'time_zone_names' => (
240             is => 'ro',
241             isa => HashRef,
242             init_arg => undef,
243             default => sub { {
244             'Bolivia' => {
245             short => {
246             'standard' => q#BOT#,
247             },
248             },
249             } }
250             );
251             no Moo;
252 1     1   1071  
  1         2  
  1         4  
253             1;
254              
255             # vim: tabstop=4