File Coverage

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