File Coverage

blib/lib/Locale/CLDR/Locales/Mn/Mong/Mn.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::Mn::Mong::Mn - Package for language Mongolian
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Mn::Mong::Mn;
10             # This file auto generated from Data\common\main\mn_Mong_MN.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1107 use strict;
  1         2  
  1         29  
14 1     1   3 use warnings;
  1         2  
  1         32  
15 1     1   4 use version;
  1         1  
  1         4  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   102 use v5.12.0;
  1         2  
20 1     1   4 use mro 'c3';
  1         2  
  1         4  
21 1     1   17 use utf8;
  1         2  
  1         22  
22 1     1   30 use feature 'unicode_strings';
  1         1  
  1         108  
23 1     1   4 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         6  
24 1     1   1611 use Moo;
  1         2  
  1         5  
25              
26             extends('Locale::CLDR::Locales::Mn::Mong');
27             has 'display_name_language' => (
28             is => 'ro',
29             isa => CodeRef,
30             init_arg => undef,
31             default => sub {
32             sub {
33             my %languages = (
34             'de' => 'ᠭᠧᠷᠮᠠᠨ',
35             'de_AT' => 'ᠠᠦᠰᠲᠷᠢ ᠭᠧᠷᠮᠠᠨ',
36             'de_CH' => 'ᠰᠸᠢᠼᠸᠵᠯᠡᠨᠳᠠ ᠭᠧᠷᠮᠠᠨ',
37             'en' => 'ᠠᠨᠭᠭᠯᠢ',
38             'en_AU' => 'ᠠᠥ᠋ᠰᠲ᠋ᠠᠷᠠᠯᠢᠢ᠎ᠠ ᠠᠨᠭᠭᠯᠢ',
39             'en_CA' => 'ᠻᠠᠨᠠᠳᠠ ᠠᠨᠭᠭᠯᠢ',
40             'en_GB' => 'ᠪᠷᠢᠲ᠋ᠠᠨᠢ ᠠᠨᠭᠭᠯᠢ',
41             'en_US' => 'ᠠᠮᠧᠷᠢᠺᠠ ᠠᠨᠭᠭᠯᠢ',
42             'es' => 'ᠢᠰᠫᠠᠨᠢ',
43             'es_419' => 'ᠢᠰᠫᠠᠨᠢ (ᠯᠠᠠᠲ᠋ᠢᠨ ᠡᠠᠮᠸᠷᠢᠺᠠ)',
44             'es_ES' => 'ᠢᠰᠫᠠᠨᠢ (ᠢᠰᠫᠠᠨᠢ)',
45             'es_MX' => 'ᠢᠰᠫᠠᠨᠢ (ᠮᠸᠺᠰᠢᠺᠦ)',
46             'fr' => 'ᠹᠷᠠᠨᠼᠠ',
47             'fr_CA' => 'ᠹᠷᠠᠨᠼᠠ ᠹᠷᠠᠨᠼᠠ',
48             'fr_CH' => 'ᠰᠸᠢᠼᠸᠵᠯᠡᠨ᠋ᠳ᠋ ᠹᠷᠠᠨᠼᠠ',
49             'it' => 'ᠢᠲ᠋ᠠᠯᠢ',
50             'ja' => 'ᠶᠡᠫᠥᠠ',
51             'mn' => 'ᠮᠣᠩᠭᠣᠯ',
52             'pt' => 'ᠫᠣᠷᠲ᠋ᠦ᠋ᠭᠠᠯᠢ',
53             'pt_PT' => 'ᠫᠣᠷᠲ᠋ᠦ᠋ᠭᠠᠯᠢ (ᠫᠣᠷᠲ᠋ᠦ᠋ᠭᠠᠯᠢ)',
54             'ru' => 'ᠣᠷᠣᠰ',
55             'und' => 'ᠲᠣᠳᠣᠷᠬᠠᠢ ᠥᠭᠡᠢ ᠬᠡᠯᠡ',
56             'zh' => 'ᠬᠢᠳᠠᠳ',
57             'zh_Hans' => 'ᠬᠢᠯᠪᠠᠷᠰᠢᠭᠣᠯᠣᠭᠰᠠᠨ ᠬᠢᠳᠠᠳ',
58             'zh_Hant' => 'ᠣᠯᠠᠮᠵᠢᠯᠠᠯᠳᠥ ᠬᠢᠳᠠᠳ',
59              
60             );
61             if (@_) {
62             return $languages{$_[0]};
63             }
64             return \%languages;
65             }
66             },
67             );
68              
69             has 'display_name_script' => (
70             is => 'ro',
71             isa => CodeRef,
72             init_arg => undef,
73             default => sub {
74             sub {
75             my %scripts = (
76             'Arab' => 'ᠡᠡᠷᠡᠪ',
77             'Cyrl' => 'ᠻᠢᠷᠢᠯᠯ',
78             'Hans' => 'ᠺᠢᠯᠪᠡᠷᠰᠢᠭᠣᠯᠥᠡᠡᠰᠡᠠ',
79             'Hans@alt=stand-alone' => 'ᠺᠢᠯᠪᠡᠷᠰᠢᠭᠣᠯᠥᠡᠡᠰᠡᠠ ᠬᠠᠠᠵᠢ',
80             'Hant' => 'ᠣᠯᠠᠮᠵᠥᠯᠠᠯᠳᠥ',
81             'Hant@alt=stand-alone' => 'ᠣᠯᠡᠮᠵᠢᠯᠡᠯᠳᠥ ᠬᠠᠨᠵᠢ',
82             'Latn' => 'ᠯᠠᠲ᠋ᠢᠨ',
83             'Mong' => 'ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌',
84             'Zxxx' => 'ᠪᠢᠴᠢᠭᠳᠡᠭᠡ ᠥᠭᠡᠢ',
85             'Zzzz' => 'ᠳᠥᠳᠥᠷᠬᠠᠢ ᠥᠬᠡᠢ ᠪᠢᠴᠢᠭ᠌',
86              
87             );
88             if ( @_ ) {
89             return $scripts{$_[0]};
90             }
91             return \%scripts;
92             }
93             }
94             );
95              
96             has 'display_name_region' => (
97             is => 'ro',
98             isa => HashRef[Str],
99             init_arg => undef,
100             default => sub {
101             {
102             'BR' => 'ᠪᠷᠠᠽᠢᠯ',
103             'CN' => 'ᠬᠢᠳᠠᠳ',
104             'DE' => 'ᠭᠧᠷᠮᠠᠨ',
105             'FR' => 'ᠫᠷᠠᠨ᠋᠋ᠼᠠ',
106             'GB' => 'ᠶᠡᠺᠡ ᠪᠷᠢᠲ᠋ᠠᠨᠢ',
107             'IN' => 'ᠡᠨᠡᠳᠬᠡᠭ᠌',
108             'IT' => 'ᠢᠲ᠋ᠠᠯᠢ',
109             'JP' => 'ᠶᠠᠫᠣᠨ',
110             'MN' => 'ᠮᠣᠩᠭᠣᠯ',
111             'RU' => 'ᠣᠷᠣᠰ',
112             'US' => 'ᠠᠮᠸᠷᠢᠻᠠ ᠎ᠢᠢᠨ ᠨᠢᠭᠡᠳᠥᠭᠰᠡᠠ ᠡᠣᠯᠣᠰ',
113             'ZZ' => 'ᠳᠣᠳᠣᠷᠬᠠᠢ ᠥᠭᠡᠢ ᠪᠥᠰᠠ',
114              
115             }
116             },
117             );
118              
119             has 'display_name_type' => (
120             is => 'ro',
121             isa => HashRef[HashRef[Str]],
122             init_arg => undef,
123             default => sub {
124             {
125             'calendar' => {
126             'gregorian' => q{ᠭᠸᠷᠸᠭᠣᠷᠢ ᠢᠨ ᠬᠣᠸᠠᠩᠯᠢ},
127             },
128             'collation' => {
129             'standard' => q{ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠡᠷᠡᠮᠪᠡᠯᠡᠬᠥ ᠳᠠᠷᠠᠭᠠᠯᠠᠯ},
130             },
131             'numbers' => {
132             'latn' => q{ᠠᠷᠠᠪ ᠲᠣᠭ᠎ᠠ},
133             'mong' => q{ᠮᠣᠩᠭᠣᠯ ᠲᠣᠭ᠎ᠠ},
134             },
135              
136             }
137             },
138             );
139              
140             has 'display_name_measurement_system' => (
141             is => 'ro',
142             isa => HashRef[Str],
143             init_arg => undef,
144             default => sub {
145             {
146             'metric' => q{ᠮᠧᠲ᠋ᠷ ᠦᠨ},
147             'UK' => q{ᠢ᠂ ᠪ},
148             'US' => q{ᠠ᠂ ᠨ᠂ ᠣ},
149              
150             }
151             },
152             );
153              
154             has 'display_name_code_patterns' => (
155             is => 'ro',
156             isa => HashRef[Str],
157             init_arg => undef,
158             default => sub {
159             {
160             'language' => 'ᠺᠡᠯᠠ᠄ {0}',
161             'script' => 'ᠪᠢᠴᠢᠭ᠌: {0}',
162             'region' => 'ᠮᠣᠵᠢ᠄ {0}',
163              
164             }
165             },
166             );
167              
168             has 'duration_units' => (
169             is => 'ro',
170             isa => HashRef[Str],
171             init_arg => undef,
172             default => sub { {
173             hm => 'hh:mm',
174             hms => 'hh:mm:ss',
175             } }
176             );
177              
178             has 'units' => (
179             is => 'ro',
180             isa => HashRef[HashRef[HashRef[Str]]],
181             init_arg => undef,
182             default => sub { {
183             } }
184             );
185              
186             has 'yesstr' => (
187             is => 'ro',
188             isa => RegexpRef,
189             init_arg => undef,
190             default => sub { qr'^(?i:ᠲᠡᠢᠢᠮᠣ᠄ ᠲ|yes|y)$' }
191             );
192              
193             has 'nostr' => (
194             is => 'ro',
195             isa => RegexpRef,
196             init_arg => undef,
197             default => sub { qr'^(?i:ᠥᠬᠡᠢ᠄ ᠥ|no|n)$' }
198             );
199              
200             has 'number_currency_formats' => (
201             is => 'ro',
202             isa => HashRef,
203             init_arg => undef,
204             default => sub { {
205             'latn' => {
206             'pattern' => {
207             'default' => {
208             'standard' => {
209             'positive' => '¤#,##0.00',
210             },
211             },
212             },
213             },
214             } },
215             );
216              
217             has 'currencies' => (
218             is => 'ro',
219             isa => HashRef,
220             init_arg => undef,
221             default => sub { {
222             'BRL' => {
223             display_name => {
224             'currency' => q(ᠪᠷᠠᠽᠢᠯ ᠤᠨ ᠷᠧᠠᠯ),
225             'one' => q(ᠪᠷᠠᠽᠢᠯ ᠤᠨ ᠷᠧᠠᠯ),
226             'other' => q(ᠪᠷᠠᠽᠢᠯ ᠤᠨ ᠷᠧᠠᠯ),
227             },
228             },
229             'CNY' => {
230             display_name => {
231             'currency' => q(ᠬᠢᠲᠠᠳ ᠶᠤᠸᠠᠨ),
232             'one' => q(ᠬᠢᠲᠠᠳ ᠶᠤᠸᠠᠨ),
233             'other' => q(ᠬᠢᠲᠠᠳ ᠶᠤᠸᠠᠨ),
234             },
235             },
236             'EUR' => {
237             display_name => {
238             'currency' => q(ᠶᠧᠸᠷᠣ),
239             'one' => q(ᠶᠧᠸᠷᠣ),
240             'other' => q(ᠶᠧᠸᠷᠣ),
241             },
242             },
243             'GBP' => {
244             display_name => {
245             'currency' => q(ᠪᠷᠢᠲ᠋ᠠᠨᠢ ᠢᠢᠨ ᠫᠤᠢᠨᠳ᠋),
246             'one' => q(ᠪᠷᠢᠲ᠋ᠠᠨᠢ ᠢᠢᠨ ᠫᠤᠢᠨᠳ᠋),
247             'other' => q(ᠪᠷᠢᠲ᠋ᠠᠨᠢ ᠢᠢᠨ ᠫᠤᠢᠨᠳ᠋),
248             },
249             },
250             'INR' => {
251             display_name => {
252             'currency' => q(ᠡᠨᠡᠳᠬᠡᠭ᠌ ᠷᠦᠫᠢ),
253             'one' => q(ᠡᠨᠡᠳᠬᠡᠭ᠌ ᠷᠦᠫᠢ),
254             'other' => q(ᠡᠨᠡᠳᠬᠡᠭ᠌ ᠷᠦᠫᠢ),
255             },
256             },
257             'JPY' => {
258             display_name => {
259             'currency' => q(ᠶᠠᠫᠣᠨ ᠧᠨ),
260             'one' => q(ᠶᠠᠫᠣᠨ ᠧᠨ),
261             'other' => q(ᠶᠠᠫᠣᠨ ᠧᠨ),
262             },
263             },
264             'MNT' => {
265             symbol => '₮',
266             display_name => {
267             'currency' => q(ᠳᠥᠬᠥᠷᠢᠭ᠌),
268             'one' => q(ᠳᠥᠬᠥᠷᠢᠭ᠌),
269             'other' => q(ᠳᠥᠬᠥᠷᠢᠭ᠌),
270             },
271             },
272             'RUB' => {
273             display_name => {
274             'currency' => q(ᠣᠷᠥᠰ ᠷᠥᠪᠯᠢ),
275             'one' => q(ᠣᠷᠥᠰ ᠷᠥᠪᠯᠢ),
276             'other' => q(ᠣᠷᠥᠰ ᠷᠥᠪᠯᠢ),
277             },
278             },
279             'USD' => {
280             display_name => {
281             'currency' => q(ᠠᠮᠸᠷᠢᠻᠠ ᠳ᠋ᠣᠯᠯᠠᠷ),
282             'one' => q(ᠠᠮᠸᠷᠢᠻᠠ ᠳ᠋ᠣᠯᠯᠠᠷ),
283             'other' => q(ᠠᠮᠸᠷᠢᠻᠠ ᠳ᠋ᠣᠯᠯᠠᠷ),
284             },
285             },
286             'XXX' => {
287             display_name => {
288             'currency' => q(ᠲᠣᠳᠣᠷᠬᠠᠢ ᠥᠭᠡᠢ ᠮᠥᠩᠭᠥᠨ ᠲᠡᠮᠳᠡᠭᠳᠥ),
289             'one' => q(ᠲᠣᠳᠣᠷᠬᠠᠢ ᠥᠭᠡᠢ ᠮᠥᠩᠭᠥᠨ ᠲᠡᠮᠳᠡᠭᠳᠥ ᠢᠢᠨ ᠨᠢᠭᠡᠴᠡ),
290             'other' => q(\(ᠲᠣᠳᠣᠷᠬᠠᠢ ᠥᠭᠡᠢ ᠮᠥᠩᠭᠥᠨ ᠲᠡᠮᠳᠡᠭᠳᠥ\)),
291             },
292             },
293             } },
294             );
295              
296              
297             has 'calendar_months' => (
298             is => 'ro',
299             isa => HashRef,
300             init_arg => undef,
301             default => sub { {
302             'gregorian' => {
303             'format' => {
304             abbreviated => {
305             nonleap => [
306             '1 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
307             '2 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
308             '3᠊ᠷ ᠰᠠᠷ᠎ᠠ',
309             '4 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
310             '5 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
311             '6 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
312             '7 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
313             '8᠊ᠷ ᠰᠠᠷ᠎ᠠ',
314             '9 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
315             '10 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
316             '11 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
317             '12 ᠊ᠷ ᠰᠠᠷ᠎ᠠ'
318             ],
319             leap => [
320            
321             ],
322             },
323             wide => {
324             nonleap => [
325             'ᠨᠢᠭᠡᠳᠥᠭᠡᠷ ᠰᠠᠷ᠎ᠠ',
326             'ᠬᠣᠶᠠᠳᠣᠭᠠᠷ ᠰᠠᠷ ᠠ',
327             'ᠭᠣᠷᠪᠡᠳᠣᠭᠠᠷ ᠰᠠᠷ ᠠ',
328             'ᠳᠥᠷᠪᠡᠳᠥᠭᠡᠷ ᠰᠠᠷ᠎ᠠ',
329             'ᠲᠠᠪᠣᠳᠣᠭᠠᠷ ᠰᠠᠷ ᠠ',
330             'ᠵᠢᠷᠭᠣᠭᠠᠳᠣᠭᠠᠷ ᠰᠠᠷ᠎ᠠ',
331             'ᠲᠣᠯᠣᠭᠠᠳᠣᠭᠠᠷ ᠰᠠᠷ᠎ᠠ',
332             'ᠨᠠᠢᠮᠠᠳᠥᠭᠠᠷ ᠰᠠᠷ᠎ᠠ',
333             'ᠶᠢᠰᠥᠳᠥᠭᠡᠷ ᠰᠠᠷ᠎ᠠ',
334             'ᠠᠷᠪᠠᠳᠣᠭᠠᠷ ᠰᠠᠷ᠎ᠠ',
335             'ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠥᠭᠡᠷ ᠰᠠᠷ᠎ᠠ',
336             'ᠠᠷᠪᠠᠨ ᠬᠣᠶᠠᠳᠣᠭᠠᠷ ᠰᠠᠷ᠎ᠠ'
337             ],
338             leap => [
339            
340             ],
341             },
342             },
343             'stand-alone' => {
344             abbreviated => {
345             nonleap => [
346             '1 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
347             '2 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
348             '3᠊ᠷ ᠰᠠᠷ᠎ᠠ',
349             '4 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
350             '5 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
351             '6 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
352             '7 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
353             '8 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
354             '9 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
355             '10 ᠊ᠷ ᠰᠠᠷ᠎ᠠ',
356             '11᠊ᠷ ᠰᠠᠷ᠎ᠠ',
357             '12᠊ᠷ ᠰᠠᠷ᠎ᠠ'
358             ],
359             leap => [
360            
361             ],
362             },
363             narrow => {
364             nonleap => [
365             'I',
366             'II',
367             'III',
368             'IV',
369             'V',
370             'VI',
371             'VII',
372             'VIII',
373             'IX',
374             'X',
375             'XI',
376             'XII'
377             ],
378             leap => [
379            
380             ],
381             },
382             },
383             },
384             } },
385             );
386              
387             has 'calendar_days' => (
388             is => 'ro',
389             isa => HashRef,
390             init_arg => undef,
391             default => sub { {
392             'gregorian' => {
393             'format' => {
394             abbreviated => {
395             mon => 'ᠲᠠ',
396             tue => 'ᠮᠢᠭ',
397             wed => 'ᡀᠠ',
398             thu => 'ᠫᠥᠷ',
399             fri => 'ᠪᠠ',
400             sat => 'ᠪᠢᠮ',
401             sun => 'ᠨᠢ'
402             },
403             narrow => {
404             mon => 'ᠳᠠ',
405             tue => 'ᠮᠢᠭ',
406             wed => 'ᡀᠠ',
407             thu => 'ᠫᠥᠷ',
408             fri => 'ᠪᠠ',
409             sat => 'ᠪᠢ',
410             sun => 'ᠨᠢ'
411             },
412             wide => {
413             mon => 'ᠳᠠᠸᠠ',
414             tue => 'ᠮᠢᠠᠠᠮᠠᠷ',
415             wed => 'ᡀᠠᠭᠪᠠ',
416             thu => 'ᠫᠦᠷᠪᠦ',
417             fri => 'ᠪᠠᠰᠠᠩ',
418             sat => 'ᠪᠢᠮᠪᠠ',
419             sun => 'ᠨᠢᠮ᠎ᠠ'
420             },
421             },
422             'stand-alone' => {
423             abbreviated => {
424             mon => 'ᠳᠠ',
425             tue => 'ᠮᠢᠭ',
426             wed => 'ᡀᠠ',
427             thu => 'ᠫᠦᠷ',
428             fri => 'ᠪᠠ',
429             sat => 'ᠪᠢᠮ',
430             sun => 'ᠨᠢ'
431             },
432             narrow => {
433             mon => 'ᠳᠠ',
434             tue => 'ᠮᠢᠭ',
435             wed => 'ᡀᠠ',
436             thu => 'ᠫᠥᠷ',
437             fri => 'ᠪᠠ',
438             sat => 'ᠪᠢᠮ',
439             sun => 'ᠨᠢ'
440             },
441             },
442             },
443             } },
444             );
445              
446             has 'calendar_quarters' => (
447             is => 'ro',
448             isa => HashRef,
449             init_arg => undef,
450             default => sub { {
451             'gregorian' => {
452             'format' => {
453             abbreviated => {0 => '1 ᠣᠯᠠᠷᠢᠯ',
454             1 => '2 ᠣᠯᠠᠷᠢᠯ',
455             2 => '3 ᠣᠯᠠᠷᠢᠯ',
456             3 => '4 ᠣᠯᠠᠷᠢᠯ'
457             },
458             wide => {0 => '1 ᠊ᠷ ᠣᠯᠠᠷᠢᠯ',
459             1 => '2 ᠊ᠷ ᠣᠯᠠᠷᠢᠯ',
460             2 => '3 ᠊ᠷ ᠣᠯᠠᠷᠢᠯ',
461             3 => '4 ᠊ᠷ ᠣᠯᠠᠷᠢᠯ'
462             },
463             },
464             'stand-alone' => {
465             abbreviated => {0 => 'I',
466             1 => 'II',
467             2 => 'III',
468             3 => 'IV'
469             },
470             narrow => {0 => 'I',
471             1 => 'II',
472             2 => 'III',
473             3 => 'IV'
474             },
475             },
476             },
477             } },
478             );
479              
480             has 'day_period_data' => (
481             is => 'ro',
482             isa => CodeRef,
483             init_arg => undef,
484             default => sub { sub {
485             # Time in hhmm format
486             my ($self, $type, $time, $day_period_type) = @_;
487             $day_period_type //= 'default';
488             SWITCH:
489             for ($type) {
490             if ($_ eq 'generic') {
491             if($day_period_type eq 'default') {
492             return 'midnight' if $time == 0;
493             return 'noon' if $time == 1200;
494             return 'afternoon1' if $time >= 1200
495             && $time < 1800;
496             return 'evening1' if $time >= 1800
497             && $time < 2100;
498             return 'morning1' if $time >= 600
499             && $time < 1200;
500             return 'night1' if $time >= 2100;
501             return 'night1' if $time < 600;
502             }
503             if($day_period_type eq 'selection') {
504             return 'afternoon1' if $time >= 1200
505             && $time < 1800;
506             return 'evening1' if $time >= 1800
507             && $time < 2100;
508             return 'morning1' if $time >= 600
509             && $time < 1200;
510             return 'night1' if $time >= 2100;
511             return 'night1' if $time < 600;
512             }
513             last SWITCH;
514             }
515             if ($_ eq 'gregorian') {
516             if($day_period_type eq 'default') {
517             return 'midnight' if $time == 0;
518             return 'noon' if $time == 1200;
519             return 'afternoon1' if $time >= 1200
520             && $time < 1800;
521             return 'evening1' if $time >= 1800
522             && $time < 2100;
523             return 'morning1' if $time >= 600
524             && $time < 1200;
525             return 'night1' if $time >= 2100;
526             return 'night1' if $time < 600;
527             }
528             if($day_period_type eq 'selection') {
529             return 'afternoon1' if $time >= 1200
530             && $time < 1800;
531             return 'evening1' if $time >= 1800
532             && $time < 2100;
533             return 'morning1' if $time >= 600
534             && $time < 1200;
535             return 'night1' if $time >= 2100;
536             return 'night1' if $time < 600;
537             }
538             last SWITCH;
539             }
540             }
541             } },
542             );
543              
544             around day_period_data => sub {
545             my ($orig, $self) = @_;
546             return $self->$orig;
547             };
548              
549             has 'day_periods' => (
550             is => 'ro',
551             isa => HashRef,
552             init_arg => undef,
553             default => sub { {
554             'gregorian' => {
555             'format' => {
556             'wide' => {
557             'am' => q{ᠦ᠂ ᠥ},
558             'pm' => q{ᠦ᠂ ᠬᠣ},
559             },
560             },
561             },
562             } },
563             );
564              
565             has 'eras' => (
566             is => 'ro',
567             isa => HashRef,
568             init_arg => undef,
569             default => sub { {
570             'generic' => {
571             },
572             'gregorian' => {
573             abbreviated => {
574             '0' => 'ᠮ᠂ ᠡᠡ᠂ ᠦ',
575             '1' => 'ᠮ᠂ ᠡ'
576             },
577             },
578             } },
579             );
580              
581             has 'date_formats' => (
582             is => 'ro',
583             isa => HashRef,
584             init_arg => undef,
585             default => sub { {
586             'generic' => {
587             'full' => q{y ᠤᠨ ᠣ MM ᠰᠠᠷ ᠠ ᠢᠢᠨ dd},
588             'long' => q{y ᠣᠨ ᠎ᠤ MM ᠰᠠᠷ᠎ᠠ ᠎ᠢᠢᠨ dd},
589             'medium' => q{y MM d},
590             'short' => q{y-MM-dd},
591             },
592             'gregorian' => {
593             'full' => q{y ᠣᠨ ᠎᠎᠎ᠤ MMMM᠎᠎ᠢᠢᠨd. EEEE ᠋ᠭᠠᠷᠠᠭ},
594             'long' => q{y ᠋ᠣᠨ ᠤMMMM᠎᠎ ᠤᠩ d},
595             'medium' => q{y.MM.dd},
596             'short' => q{y.MM.dd},
597             },
598             } },
599             );
600              
601             has 'time_formats' => (
602             is => 'ro',
603             isa => HashRef,
604             init_arg => undef,
605             default => sub { {
606             'generic' => {
607             },
608             'gregorian' => {
609             'full' => q{HH:mm:ss (zzzz)},
610             'long' => q{HH:mm:ss (z)},
611             },
612             } },
613             );
614              
615             has 'datetime_formats' => (
616             is => 'ro',
617             isa => HashRef,
618             init_arg => undef,
619             default => sub { {
620             'generic' => {
621             },
622             'gregorian' => {
623             },
624             } },
625             );
626              
627             has 'datetime_formats_available_formats' => (
628             is => 'ro',
629             isa => HashRef,
630             init_arg => undef,
631             default => sub { {
632             } },
633             );
634              
635             has 'datetime_formats_append_item' => (
636             is => 'ro',
637             isa => HashRef,
638             init_arg => undef,
639             default => sub { {
640             } },
641             );
642              
643             has 'datetime_formats_interval' => (
644             is => 'ro',
645             isa => HashRef,
646             init_arg => undef,
647             default => sub { {
648             'generic' => {
649             fallback => '{0} - {1}',
650             },
651             } },
652             );
653              
654             has 'time_zone_names' => (
655             is => 'ro',
656             isa => HashRef,
657             init_arg => undef,
658             default => sub { {
659             gmtFormat => q(GMT {0}),
660             regionFormat => q({0} ᠴᠠᠭ),
661             regionFormat => q({0} ᠵᠣᠨ ᠎᠎᠎ᠤ ᠴᠠᠭ),
662             regionFormat => q({0} ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ),
663             'America_Central' => {
664             long => {
665             'daylight' => q#ᠲᠥᠪ ᠵᠣᠨ ᠎᠎᠎ᠤ ᠴᠠᠭ#,
666             'generic' => q#ᠲᠥᠪ ᠴᠠᠭ#,
667             'standard' => q#ᠳᠥᠪ ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ#,
668             },
669             },
670             'America_Eastern' => {
671             long => {
672             'daylight' => q#ᠵᠡᠭᠥᠨ ᠡᠷᠭᠡ ᠎ᠢᠢᠨ ᠵᠣᠨ ᠎᠎᠎ᠤ ᠴᠠᠭ#,
673             'generic' => q#ᠵᠡᠭᠥᠨ ᠡᠷᠭᠡ ᠎ᠢᠢᠨ ᠴᠠᠭ#,
674             'standard' => q#ᠵᠡᠭᠥᠨ ᠡᠷᠭᠡ ᠎ᠢᠢᠨ ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ#,
675             },
676             },
677             'America_Mountain' => {
678             long => {
679             'daylight' => q#ᠠᠭᠣᠯᠠ ᠎ᠢᠢᠨ ᠵᠣᠨ ᠎᠎ᠤ ᠴᠠᠭ#,
680             'generic' => q#ᠠᠭᠣᠯᠠ ᠎᠎᠎᠎ᠢᠢᠨ ᠴᠠᠭ#,
681             'standard' => q#ᠠᠭᠣᠯᠠ ᠎᠎᠎᠎ᠢᠢᠨ ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ#,
682             },
683             },
684             'America_Pacific' => {
685             long => {
686             'daylight' => q#ᠨᠣᠮᠣᠬᠠᠨ ᠳᠠᠯᠠᠢ ᠎ᠢᠢᠨ ᠵᠣᠨ ᠎᠎᠎ᠪ ᠴᠠᠭ#,
687             'generic' => q#ᠨᠣᠮᠣᠬᠠᠨ ᠳᠠᠯᠠᠢ ᠎ᠢᠢᠨ ᠴᠠᠭ#,
688             'standard' => q#ᠨᠣᠮᠣᠬᠠᠨ ᠳᠠᠯᠠᠢ ᠎᠎ᠢᠢᠨ ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ#,
689             },
690             },
691             'Asia/Hovd' => {
692             exemplarCity => q#ᠬᠣᠪᠳᠣ#,
693             },
694             'Asia/Ulaanbaatar' => {
695             exemplarCity => q#ᠣᠯᠠᠭᠠᠨᠪᠠᠭᠠᠳᠣᠷ#,
696             },
697             'Atlantic' => {
698             long => {
699             'daylight' => q#ᠠᠲ᠋ᠯᠠᠨ᠋ᠲ ᠎ᠤᠨ ᠵᠣᠨ ᠎ᠪ ᠴᠠᠭ#,
700             'generic' => q#ᠠᠲ᠋ᠯᠠᠨ᠋ᠲ᠋ ᠎ᠤᠨ ᠴᠠᠭ#,
701             'standard' => q#ᠠᠲ᠋ᠯᠠᠨ᠋ᠲ ᠎ᠤᠨ ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ#,
702             },
703             },
704             'Etc/UTC' => {
705             long => {
706             'standard' => q#ᠣᠯᠠᠨ ᠣᠯᠣᠰ ᠤᠨ ᠵᠣᠬᠢᠴᠡᠭᠣᠯᠣᠯᠳᠠᠳᠠᠢ ᠴᠠᠭ#,
707             },
708             },
709             'Etc/Unknown' => {
710             exemplarCity => q#ᠥᠯᠥ ᠮᠡᠳᠡᠭᠳᠡᠬᠥ ᠬᠣᠳᠠ#,
711             },
712             'Europe_Central' => {
713             long => {
714             'daylight' => q#ᠲᠥᠪ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠵᠣᠨ ᠎᠎ᠤ ᠴᠠᠭ#,
715             'generic' => q#ᠲᠥᠪ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠴᠠᠭ#,
716             'standard' => q#ᠲᠥᠪ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ#,
717             },
718             },
719             'Europe_Eastern' => {
720             long => {
721             'daylight' => q#ᠵᠡᠭᠦᠨ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠵᠣᠨ ᠎᠎ᠤ ᠴᠠᠭ#,
722             'generic' => q#ᠵᠡᠭᠦᠨ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠴᠠᠭ#,
723             'standard' => q#ᠵᠡᠭᠦᠨ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ#,
724             },
725             },
726             'Europe_Western' => {
727             long => {
728             'daylight' => q#ᠪᠠᠷᠠᠭᠣᠨ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠵᠣᠨ ᠎᠎ᠤ ᠴᠠᠭ#,
729             'generic' => q#ᠪᠠᠷᠠᠭᠣᠨ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠴᠠᠭ#,
730             'standard' => q#ᠪᠠᠷᠠᠭᠣᠨ ᠡᠸᠣᠢᠷᠤᠫᠠ ᠢᠢᠨ ᠰᠲ᠋ᠠᠨ᠋ᠳᠠᠷᠳ᠋ ᠴᠠᠭ#,
731             },
732             },
733             'GMT' => {
734             long => {
735             'standard' => q#ᠭᠷᠢᠨ᠋ᠸᠢᠴᠢ ᠢᠢᠨ ᠴᠠᠭ#,
736             },
737             },
738             } }
739             );
740 1     1   2485 no Moo;
  1         2  
  1         5  
741              
742             1;
743              
744             # vim: tabstop=4