File Coverage

blib/lib/Locale/CLDR/Locales/Zh/Hans/Sg.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::Zh::Hans::Sg - Package for language Chinese
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Zh::Hans::Sg;
10             # This file auto generated from Data\common\main\zh_Hans_SG.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1970 use strict;
  1         3  
  1         88  
14 1     1   9 use warnings;
  1         2  
  1         76  
15 1     1   8 use version;
  1         3  
  1         8  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   154 use v5.12.0;
  1         4  
20 1     1   8 use mro 'c3';
  1         2  
  1         9  
21 1     1   42 use utf8;
  1         2  
  1         9  
22 1     1   82 use feature 'unicode_strings';
  1         3  
  1         186  
23 1     1   9 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         11  
24 1     1   3136 use Moo;
  1         2  
  1         9  
25              
26             extends('Locale::CLDR::Locales::Zh::Hans');
27             has 'units' => (
28             is => 'ro',
29             isa => HashRef[HashRef[HashRef[Str]]],
30             init_arg => undef,
31             default => sub { {
32             'long' => {
33             # Long Unit Identifier
34             'concentr-karat' => {
35             'name' => q(开),
36             'other' => q({0}开),
37             },
38             # Core Unit Identifier
39             'karat' => {
40             'name' => q(开),
41             'other' => q({0}开),
42             },
43             # Long Unit Identifier
44             'duration-second' => {
45             'other' => q({0}秒),
46             },
47             # Core Unit Identifier
48             'second' => {
49             'other' => q({0}秒),
50             },
51             # Long Unit Identifier
52             'per' => {
53             '1' => q({0}/{1}),
54             },
55             # Core Unit Identifier
56             'per' => {
57             '1' => q({0}/{1}),
58             },
59             # Long Unit Identifier
60             'temperature-kelvin' => {
61             'name' => q(开氏度),
62             'other' => q({0}开氏度),
63             },
64             # Core Unit Identifier
65             'kelvin' => {
66             'name' => q(开氏度),
67             'other' => q({0}开氏度),
68             },
69             },
70             'narrow' => {
71             # Long Unit Identifier
72             'concentr-karat' => {
73             'other' => q({0}开),
74             },
75             # Core Unit Identifier
76             'karat' => {
77             'other' => q({0}开),
78             },
79             # Long Unit Identifier
80             'length-foot' => {
81             'other' => q({0}英尺),
82             },
83             # Core Unit Identifier
84             'foot' => {
85             'other' => q({0}英尺),
86             },
87             # Long Unit Identifier
88             'length-inch' => {
89             'other' => q({0}英寸),
90             },
91             # Core Unit Identifier
92             'inch' => {
93             'other' => q({0}英寸),
94             },
95             # Long Unit Identifier
96             'length-light-year' => {
97             'other' => q({0}光年),
98             },
99             # Core Unit Identifier
100             'light-year' => {
101             'other' => q({0}光年),
102             },
103             # Long Unit Identifier
104             'length-mile' => {
105             'other' => q({0}英里),
106             },
107             # Core Unit Identifier
108             'mile' => {
109             'other' => q({0}英里),
110             },
111             # Long Unit Identifier
112             'length-picometer' => {
113             'other' => q({0}皮米),
114             },
115             # Core Unit Identifier
116             'picometer' => {
117             'other' => q({0}皮米),
118             },
119             # Long Unit Identifier
120             'length-yard' => {
121             'other' => q({0}码),
122             },
123             # Core Unit Identifier
124             'yard' => {
125             'other' => q({0}码),
126             },
127             },
128             'short' => {
129             # Long Unit Identifier
130             'acceleration-g-force' => {
131             'other' => q({0}G力),
132             },
133             # Core Unit Identifier
134             'g-force' => {
135             'other' => q({0}G力),
136             },
137             # Long Unit Identifier
138             'concentr-karat' => {
139             'name' => q(开),
140             'other' => q({0}开),
141             },
142             # Core Unit Identifier
143             'karat' => {
144             'name' => q(开),
145             'other' => q({0}开),
146             },
147             # Long Unit Identifier
148             'temperature-kelvin' => {
149             'name' => q(开氏度),
150             'other' => q({0}°K),
151             },
152             # Core Unit Identifier
153             'kelvin' => {
154             'name' => q(开氏度),
155             'other' => q({0}°K),
156             },
157             },
158             } }
159             );
160              
161             has 'currencies' => (
162             is => 'ro',
163             isa => HashRef,
164             init_arg => undef,
165             default => sub { {
166             'ANG' => {
167             display_name => {
168             'other' => q(荷兰安的列斯盾),
169             },
170             },
171             'CNY' => {
172             symbol => 'CN¥',
173             },
174             'NIO' => {
175             display_name => {
176             'other' => q(尼加拉瓜科多巴),
177             },
178             },
179             'SGD' => {
180             symbol => '$',
181             },
182             'XAG' => {
183             display_name => {
184             'currency' => q(白银),
185             'other' => q(白银),
186             },
187             },
188             } },
189             );
190              
191              
192             has 'day_period_data' => (
193             is => 'ro',
194             isa => CodeRef,
195             init_arg => undef,
196             default => sub { sub {
197             # Time in hhmm format
198             my ($self, $type, $time, $day_period_type) = @_;
199             $day_period_type //= 'default';
200             SWITCH:
201             for ($type) {
202             if ($_ eq 'buddhist') {
203             if($day_period_type eq 'default') {
204             return 'midnight' if $time == 0;
205             return 'afternoon1' if $time >= 1200
206             && $time < 1300;
207             return 'afternoon2' if $time >= 1300
208             && $time < 1900;
209             return 'evening1' if $time >= 1900
210             && $time < 2400;
211             return 'morning1' if $time >= 500
212             && $time < 800;
213             return 'morning2' if $time >= 800
214             && $time < 1200;
215             return 'night1' if $time >= 0
216             && $time < 500;
217             }
218             if($day_period_type eq 'selection') {
219             return 'afternoon1' if $time >= 1200
220             && $time < 1300;
221             return 'afternoon2' if $time >= 1300
222             && $time < 1900;
223             return 'evening1' if $time >= 1900
224             && $time < 2400;
225             return 'morning1' if $time >= 500
226             && $time < 800;
227             return 'morning2' if $time >= 800
228             && $time < 1200;
229             return 'night1' if $time >= 0
230             && $time < 500;
231             }
232             last SWITCH;
233             }
234             if ($_ eq 'chinese') {
235             if($day_period_type eq 'default') {
236             return 'midnight' if $time == 0;
237             return 'afternoon1' if $time >= 1200
238             && $time < 1300;
239             return 'afternoon2' if $time >= 1300
240             && $time < 1900;
241             return 'evening1' if $time >= 1900
242             && $time < 2400;
243             return 'morning1' if $time >= 500
244             && $time < 800;
245             return 'morning2' if $time >= 800
246             && $time < 1200;
247             return 'night1' if $time >= 0
248             && $time < 500;
249             }
250             if($day_period_type eq 'selection') {
251             return 'afternoon1' if $time >= 1200
252             && $time < 1300;
253             return 'afternoon2' if $time >= 1300
254             && $time < 1900;
255             return 'evening1' if $time >= 1900
256             && $time < 2400;
257             return 'morning1' if $time >= 500
258             && $time < 800;
259             return 'morning2' if $time >= 800
260             && $time < 1200;
261             return 'night1' if $time >= 0
262             && $time < 500;
263             }
264             last SWITCH;
265             }
266             if ($_ eq 'generic') {
267             if($day_period_type eq 'default') {
268             return 'midnight' if $time == 0;
269             return 'afternoon1' if $time >= 1200
270             && $time < 1300;
271             return 'afternoon2' if $time >= 1300
272             && $time < 1900;
273             return 'evening1' if $time >= 1900
274             && $time < 2400;
275             return 'morning1' if $time >= 500
276             && $time < 800;
277             return 'morning2' if $time >= 800
278             && $time < 1200;
279             return 'night1' if $time >= 0
280             && $time < 500;
281             }
282             if($day_period_type eq 'selection') {
283             return 'afternoon1' if $time >= 1200
284             && $time < 1300;
285             return 'afternoon2' if $time >= 1300
286             && $time < 1900;
287             return 'evening1' if $time >= 1900
288             && $time < 2400;
289             return 'morning1' if $time >= 500
290             && $time < 800;
291             return 'morning2' if $time >= 800
292             && $time < 1200;
293             return 'night1' if $time >= 0
294             && $time < 500;
295             }
296             last SWITCH;
297             }
298             if ($_ eq 'gregorian') {
299             if($day_period_type eq 'default') {
300             return 'midnight' if $time == 0;
301             return 'afternoon1' if $time >= 1200
302             && $time < 1300;
303             return 'afternoon2' if $time >= 1300
304             && $time < 1900;
305             return 'evening1' if $time >= 1900
306             && $time < 2400;
307             return 'morning1' if $time >= 500
308             && $time < 800;
309             return 'morning2' if $time >= 800
310             && $time < 1200;
311             return 'night1' if $time >= 0
312             && $time < 500;
313             }
314             if($day_period_type eq 'selection') {
315             return 'afternoon1' if $time >= 1200
316             && $time < 1300;
317             return 'afternoon2' if $time >= 1300
318             && $time < 1900;
319             return 'evening1' if $time >= 1900
320             && $time < 2400;
321             return 'morning1' if $time >= 500
322             && $time < 800;
323             return 'morning2' if $time >= 800
324             && $time < 1200;
325             return 'night1' if $time >= 0
326             && $time < 500;
327             }
328             last SWITCH;
329             }
330             if ($_ eq 'islamic') {
331             if($day_period_type eq 'default') {
332             return 'midnight' if $time == 0;
333             return 'afternoon1' if $time >= 1200
334             && $time < 1300;
335             return 'afternoon2' if $time >= 1300
336             && $time < 1900;
337             return 'evening1' if $time >= 1900
338             && $time < 2400;
339             return 'morning1' if $time >= 500
340             && $time < 800;
341             return 'morning2' if $time >= 800
342             && $time < 1200;
343             return 'night1' if $time >= 0
344             && $time < 500;
345             }
346             if($day_period_type eq 'selection') {
347             return 'afternoon1' if $time >= 1200
348             && $time < 1300;
349             return 'afternoon2' if $time >= 1300
350             && $time < 1900;
351             return 'evening1' if $time >= 1900
352             && $time < 2400;
353             return 'morning1' if $time >= 500
354             && $time < 800;
355             return 'morning2' if $time >= 800
356             && $time < 1200;
357             return 'night1' if $time >= 0
358             && $time < 500;
359             }
360             last SWITCH;
361             }
362             if ($_ eq 'japanese') {
363             if($day_period_type eq 'default') {
364             return 'midnight' if $time == 0;
365             return 'afternoon1' if $time >= 1200
366             && $time < 1300;
367             return 'afternoon2' if $time >= 1300
368             && $time < 1900;
369             return 'evening1' if $time >= 1900
370             && $time < 2400;
371             return 'morning1' if $time >= 500
372             && $time < 800;
373             return 'morning2' if $time >= 800
374             && $time < 1200;
375             return 'night1' if $time >= 0
376             && $time < 500;
377             }
378             if($day_period_type eq 'selection') {
379             return 'afternoon1' if $time >= 1200
380             && $time < 1300;
381             return 'afternoon2' if $time >= 1300
382             && $time < 1900;
383             return 'evening1' if $time >= 1900
384             && $time < 2400;
385             return 'morning1' if $time >= 500
386             && $time < 800;
387             return 'morning2' if $time >= 800
388             && $time < 1200;
389             return 'night1' if $time >= 0
390             && $time < 500;
391             }
392             last SWITCH;
393             }
394             if ($_ eq 'roc') {
395             if($day_period_type eq 'default') {
396             return 'midnight' if $time == 0;
397             return 'afternoon1' if $time >= 1200
398             && $time < 1300;
399             return 'afternoon2' if $time >= 1300
400             && $time < 1900;
401             return 'evening1' if $time >= 1900
402             && $time < 2400;
403             return 'morning1' if $time >= 500
404             && $time < 800;
405             return 'morning2' if $time >= 800
406             && $time < 1200;
407             return 'night1' if $time >= 0
408             && $time < 500;
409             }
410             if($day_period_type eq 'selection') {
411             return 'afternoon1' if $time >= 1200
412             && $time < 1300;
413             return 'afternoon2' if $time >= 1300
414             && $time < 1900;
415             return 'evening1' if $time >= 1900
416             && $time < 2400;
417             return 'morning1' if $time >= 500
418             && $time < 800;
419             return 'morning2' if $time >= 800
420             && $time < 1200;
421             return 'night1' if $time >= 0
422             && $time < 500;
423             }
424             last SWITCH;
425             }
426             }
427             } },
428             );
429              
430             around day_period_data => sub {
431             my ($orig, $self) = @_;
432             return $self->$orig;
433             };
434              
435             has 'eras' => (
436             is => 'ro',
437             isa => HashRef,
438             init_arg => undef,
439             default => sub { {
440             'buddhist' => {
441             },
442             'chinese' => {
443             },
444             'generic' => {
445             },
446             'gregorian' => {
447             },
448             'islamic' => {
449             },
450             'japanese' => {
451             },
452             'roc' => {
453             },
454             } },
455             );
456              
457             has 'date_formats' => (
458             is => 'ro',
459             isa => HashRef,
460             init_arg => undef,
461             default => sub { {
462             'buddhist' => {
463             'short' => q{Gd/M/yy},
464             },
465             'chinese' => {
466             'full' => q{U年MMMd日EEEE},
467             'long' => q{U年MMMd日},
468             'medium' => q{U年MMMd日},
469             },
470             'generic' => {
471             'short' => q{dd/MM/yyGGGGG},
472             },
473             'gregorian' => {
474             'short' => q{dd/MM/yy},
475             },
476             'islamic' => {
477             'short' => q{Gd/M/yy},
478             },
479             'japanese' => {
480             'short' => q{Gd/M/yy},
481             },
482             'roc' => {
483             'short' => q{Gd/M/yy},
484             },
485             } },
486             );
487              
488             has 'time_formats' => (
489             is => 'ro',
490             isa => HashRef,
491             init_arg => undef,
492             default => sub { {
493             'buddhist' => {
494             },
495             'chinese' => {
496             },
497             'generic' => {
498             },
499             'gregorian' => {
500             'full' => q{zzzz ah:mm:ss},
501             'long' => q{z ah:mm:ss},
502             'medium' => q{ah:mm:ss},
503             'short' => q{ah:mm},
504             },
505             'islamic' => {
506             },
507             'japanese' => {
508             },
509             'roc' => {
510             },
511             } },
512             );
513              
514             has 'datetime_formats' => (
515             is => 'ro',
516             isa => HashRef,
517             init_arg => undef,
518             default => sub { {
519             'buddhist' => {
520             },
521             'chinese' => {
522             },
523             'generic' => {
524             },
525             'gregorian' => {
526             },
527             'islamic' => {
528             },
529             'japanese' => {
530             },
531             'roc' => {
532             },
533             } },
534             );
535              
536             has 'datetime_formats_available_formats' => (
537             is => 'ro',
538             isa => HashRef,
539             init_arg => undef,
540             default => sub { {
541             'generic' => {
542             MEd => q{M-dE},
543             MMMMdd => q{M月d日},
544             MMdd => q{MM-dd},
545             Md => q{M-d},
546             yyyyMEd => q{Gy年M月d日,E},
547             yyyyMd => q{Gy年M月d日},
548             },
549             'gregorian' => {
550             MEd => q{M-dE},
551             MMM => q{M月},
552             MMMMdd => q{M月d日},
553             MMdd => q{MM-dd},
554             Md => q{M-d},
555             yMEd => q{y年M月d日,E},
556             yMd => q{y年M月d日},
557             },
558             'japanese' => {
559             MEd => q{M/dE},
560             Md => q{M/d},
561             },
562             'roc' => {
563             MMM => q{M月},
564             },
565             } },
566             );
567              
568             has 'datetime_formats_append_item' => (
569             is => 'ro',
570             isa => HashRef,
571             init_arg => undef,
572             default => sub { {
573             } },
574             );
575              
576             has 'datetime_formats_interval' => (
577             is => 'ro',
578             isa => HashRef,
579             init_arg => undef,
580             default => sub { {
581             'buddhist' => {
582             Hv => {
583             H => q{vHH–HH},
584             },
585             fallback => '{0}至{1}',
586             },
587             'generic' => {
588             Hmv => {
589             H => q{vHH:mm–HH:mm},
590             m => q{vHH:mm–HH:mm},
591             },
592             Hv => {
593             H => q{vHH–HH},
594             },
595             MEd => {
596             M => q{M-dE至M-dE},
597             d => q{M-dE至M-dE},
598             },
599             MMMEd => {
600             d => q{M月d日E至M月d日E},
601             },
602             Md => {
603             M => q{M-d至M-d},
604             d => q{M-d至M-d},
605             },
606             fallback => '{0}至{1}',
607             yM => {
608             M => q{y年M月至y年M月},
609             },
610             yMEd => {
611             M => q{d/M/yE至d/M/yE},
612             d => q{d/M/yE至d/M/yE},
613             y => q{d/M/yE至d/M/yE},
614             },
615             yMd => {
616             M => q{d/M/y至d/M/y},
617             d => q{d/M/y至d/M/y},
618             y => q{d/M/y至d/M/y},
619             },
620             },
621             'gregorian' => {
622             Hmv => {
623             H => q{vHH:mm–HH:mm},
624             m => q{vHH:mm–HH:mm},
625             },
626             Hv => {
627             H => q{vHH–HH},
628             },
629             MEd => {
630             M => q{M-dE至M-dE},
631             d => q{M-dE至M-dE},
632             },
633             MMMEd => {
634             d => q{M月d日E至M月d日E},
635             },
636             Md => {
637             M => q{M-d至M-d},
638             d => q{M-d至M-d},
639             },
640             d => {
641             d => q{d日至d日},
642             },
643             fallback => '{0}至{1}',
644             yM => {
645             M => q{y年M月至y年M月},
646             },
647             yMEd => {
648             M => q{d/M/yE至d/M/yE},
649             d => q{d/M/yE至d/M/yE},
650             y => q{d/M/yE至d/M/yE},
651             },
652             yMd => {
653             M => q{d/M/y至d/M/y},
654             d => q{d/M/y至d/M/y},
655             y => q{d/M/y至d/M/y},
656             },
657             },
658             } },
659             );
660              
661             has 'time_zone_names' => (
662             is => 'ro',
663             isa => HashRef,
664             init_arg => undef,
665             default => sub { {
666             'America/Scoresbysund' => {
667             exemplarCity => q#斯考斯伯松德#,
668             },
669             'Malaysia' => {
670             short => {
671             'standard' => q#MYT#,
672             },
673             },
674             'Singapore' => {
675             short => {
676             'standard' => q#SGT#,
677             },
678             },
679             } }
680             );
681 1     1   4239 no Moo;
  1         3  
  1         6  
682              
683             1;
684              
685             # vim: tabstop=4