File Coverage

blib/lib/Locale/CLDR/Locales/Ms/Latn/Id.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::Ms::Latn::Id - Package for language Malay
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Ms::Latn::Id;
10             # This file auto generated from Data\common\main\ms_ID.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1727 use strict;
  1         3  
  1         48  
14 1     1   6 use warnings;
  1         2  
  1         57  
15 1     1   7 use version;
  1         2  
  1         7  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   137 use v5.12.0;
  1         5  
20 1     1   7 use mro 'c3';
  1         3  
  1         7  
21 1     1   38 use utf8;
  1         2  
  1         9  
22 1     1   52 use feature 'unicode_strings';
  1         2  
  1         175  
23 1     1   19 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         4  
  1         11  
24 1     1   3107 use Moo;
  1         2  
  1         7  
25              
26             extends('Locale::CLDR::Locales::Ms::Latn');
27             has 'number_symbols' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => sub { {
32             'latn' => {
33             'decimal' => q(,),
34             'group' => q(.),
35             'timeSeparator' => q(.),
36             },
37             } }
38             );
39              
40             has 'number_currency_formats' => (
41             is => 'ro',
42             isa => HashRef,
43             init_arg => undef,
44             default => sub { {
45             'latn' => {
46             'pattern' => {
47             'default' => {
48             'accounting' => {
49             'positive' => '¤#,##0.00',
50             },
51             },
52             },
53             },
54             } },
55             );
56              
57             has 'currencies' => (
58             is => 'ro',
59             isa => HashRef,
60             init_arg => undef,
61             default => sub { {
62             'IDR' => {
63             symbol => 'Rp',
64             },
65             } },
66             );
67              
68              
69             has 'day_period_data' => (
70             is => 'ro',
71             isa => CodeRef,
72             init_arg => undef,
73             default => sub { sub {
74             # Time in hhmm format
75             my ($self, $type, $time, $day_period_type) = @_;
76             $day_period_type //= 'default';
77             SWITCH:
78             for ($type) {
79             if ($_ eq 'buddhist') {
80             if($day_period_type eq 'default') {
81             return 'afternoon1' if $time >= 1200
82             && $time < 1400;
83             return 'evening1' if $time >= 1400
84             && $time < 1900;
85             return 'morning1' if $time >= 0
86             && $time < 100;
87             return 'morning2' if $time >= 100
88             && $time < 1200;
89             return 'night1' if $time >= 1900
90             && $time < 2400;
91             }
92             if($day_period_type eq 'selection') {
93             return 'afternoon1' if $time >= 1200
94             && $time < 1400;
95             return 'evening1' if $time >= 1400
96             && $time < 1900;
97             return 'morning1' if $time >= 0
98             && $time < 100;
99             return 'morning2' if $time >= 100
100             && $time < 1200;
101             return 'night1' if $time >= 1900
102             && $time < 2400;
103             }
104             last SWITCH;
105             }
106             if ($_ eq 'generic') {
107             if($day_period_type eq 'default') {
108             return 'afternoon1' if $time >= 1200
109             && $time < 1400;
110             return 'evening1' if $time >= 1400
111             && $time < 1900;
112             return 'morning1' if $time >= 0
113             && $time < 100;
114             return 'morning2' if $time >= 100
115             && $time < 1200;
116             return 'night1' if $time >= 1900
117             && $time < 2400;
118             }
119             if($day_period_type eq 'selection') {
120             return 'afternoon1' if $time >= 1200
121             && $time < 1400;
122             return 'evening1' if $time >= 1400
123             && $time < 1900;
124             return 'morning1' if $time >= 0
125             && $time < 100;
126             return 'morning2' if $time >= 100
127             && $time < 1200;
128             return 'night1' if $time >= 1900
129             && $time < 2400;
130             }
131             last SWITCH;
132             }
133             if ($_ eq 'gregorian') {
134             if($day_period_type eq 'default') {
135             return 'afternoon1' if $time >= 1200
136             && $time < 1400;
137             return 'evening1' if $time >= 1400
138             && $time < 1900;
139             return 'morning1' if $time >= 0
140             && $time < 100;
141             return 'morning2' if $time >= 100
142             && $time < 1200;
143             return 'night1' if $time >= 1900
144             && $time < 2400;
145             }
146             if($day_period_type eq 'selection') {
147             return 'afternoon1' if $time >= 1200
148             && $time < 1400;
149             return 'evening1' if $time >= 1400
150             && $time < 1900;
151             return 'morning1' if $time >= 0
152             && $time < 100;
153             return 'morning2' if $time >= 100
154             && $time < 1200;
155             return 'night1' if $time >= 1900
156             && $time < 2400;
157             }
158             last SWITCH;
159             }
160             if ($_ eq 'islamic') {
161             if($day_period_type eq 'default') {
162             return 'afternoon1' if $time >= 1200
163             && $time < 1400;
164             return 'evening1' if $time >= 1400
165             && $time < 1900;
166             return 'morning1' if $time >= 0
167             && $time < 100;
168             return 'morning2' if $time >= 100
169             && $time < 1200;
170             return 'night1' if $time >= 1900
171             && $time < 2400;
172             }
173             if($day_period_type eq 'selection') {
174             return 'afternoon1' if $time >= 1200
175             && $time < 1400;
176             return 'evening1' if $time >= 1400
177             && $time < 1900;
178             return 'morning1' if $time >= 0
179             && $time < 100;
180             return 'morning2' if $time >= 100
181             && $time < 1200;
182             return 'night1' if $time >= 1900
183             && $time < 2400;
184             }
185             last SWITCH;
186             }
187             }
188             } },
189             );
190              
191             around day_period_data => sub {
192             my ($orig, $self) = @_;
193             return $self->$orig;
194             };
195              
196             has 'eras' => (
197             is => 'ro',
198             isa => HashRef,
199             init_arg => undef,
200             default => sub { {
201             'buddhist' => {
202             },
203             'generic' => {
204             },
205             'gregorian' => {
206             },
207             'islamic' => {
208             },
209             } },
210             );
211              
212             has 'date_formats' => (
213             is => 'ro',
214             isa => HashRef,
215             init_arg => undef,
216             default => sub { {
217             'buddhist' => {
218             'full' => q{EEEE, dd MMMM y G},
219             'medium' => q{d MMM y G},
220             'short' => q{dd/MM/yy GGGGG},
221             },
222             'generic' => {
223             'full' => q{EEEE, dd MMMM y G},
224             'medium' => q{d MMM y G},
225             'short' => q{dd/MM/yy GGGGG},
226             },
227             'gregorian' => {
228             'full' => q{EEEE, dd MMMM y},
229             'short' => q{dd/MM/yy},
230             },
231             'islamic' => {
232             'full' => q{EEEE, dd MMMM y G},
233             'medium' => q{d MMM y G},
234             'short' => q{dd/MM/yy GGGGG},
235             },
236             } },
237             );
238              
239             has 'time_formats' => (
240             is => 'ro',
241             isa => HashRef,
242             init_arg => undef,
243             default => sub { {
244             'buddhist' => {
245             },
246             'generic' => {
247             },
248             'gregorian' => {
249             'full' => q{HH.mm.ss zzzz},
250             'long' => q{HH.mm.ss z},
251             'medium' => q{HH.mm.ss},
252             'short' => q{HH.mm},
253             },
254             'islamic' => {
255             },
256             } },
257             );
258              
259             has 'datetime_formats' => (
260             is => 'ro',
261             isa => HashRef,
262             init_arg => undef,
263             default => sub { {
264             'buddhist' => {
265             },
266             'generic' => {
267             },
268             'gregorian' => {
269             },
270             'islamic' => {
271             },
272             } },
273             );
274              
275             has 'datetime_formats_available_formats' => (
276             is => 'ro',
277             isa => HashRef,
278             init_arg => undef,
279             default => sub { {
280             'gregorian' => {
281             Bhm => q{h.mm B},
282             Bhms => q{h.mm.ss B},
283             EBhm => q{E h.mm B},
284             EBhms => q{E h.mm.ss B},
285             EHm => q{E HH.mm},
286             EHms => q{E HH.mm.ss},
287             Ehm => q{E h.mm a},
288             Ehms => q{E h.mm.ss a},
289             Hm => q{HH.mm},
290             Hms => q{HH.mm.ss},
291             Hmsv => q{HH.mm.ss v},
292             Hmv => q{HH.mm v},
293             hm => q{h.mm a},
294             hms => q{h.mm.ss a},
295             hmsv => q{h.mm.ss. a v},
296             hmv => q{h.mm a v},
297             },
298             } },
299             );
300              
301             has 'datetime_formats_append_item' => (
302             is => 'ro',
303             isa => HashRef,
304             init_arg => undef,
305             default => sub { {
306             } },
307             );
308              
309             has 'datetime_formats_interval' => (
310             is => 'ro',
311             isa => HashRef,
312             init_arg => undef,
313             default => sub { {
314             'gregorian' => {
315             Bhm => {
316             B => q{h.mm B – h.mm B},
317             h => q{h.mm – h.mm B},
318             m => q{h.mm – h.mm B},
319             },
320             Hm => {
321             H => q{HH.mm–HH.mm},
322             m => q{HH.mm–HH.mm},
323             },
324             Hmv => {
325             H => q{HH.mm–HH.mm v},
326             m => q{HH.mm–HH.mm v},
327             },
328             hm => {
329             a => q{h.mm a – h.mm a},
330             h => q{h.mm–h.mm a},
331             m => q{h.mm–h.mm a},
332             },
333             hmv => {
334             a => q{h.mm a – h.mm a v},
335             h => q{h.mm–h.mm a v},
336             m => q{h.mm–h.mm a v},
337             },
338             },
339             } },
340             );
341              
342             has 'time_zone_names' => (
343             is => 'ro',
344             isa => HashRef,
345             init_arg => undef,
346             default => sub { {
347             hourFormat => q(+HH.mm;-HH.mm),
348             } }
349             );
350 1     1   1931 no Moo;
  1         2  
  1         5  
351              
352             1;
353              
354             # vim: tabstop=4