File Coverage

blib/lib/Locale/CLDR/Locales/Sq/Any/Mk.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::Sq::Any::Mk - Package for language Albanian
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Sq::Any::Mk;
10             # This file auto generated from Data\common\main\sq_MK.xml
11             # on Fri 13 Oct 9:40:30 am GMT
12              
13 1     1   857 use strict;
  1         2  
  1         24  
14 1     1   5 use warnings;
  1         1  
  1         19  
15 1     1   4 use version;
  1         2  
  1         4  
16              
17             our $VERSION = version->declare('v0.34.2');
18              
19 1     1   83 use v5.10.1;
  1         3  
20 1     1   4 use mro 'c3';
  1         2  
  1         14  
21 1     1   29 use utf8;
  1         2  
  1         4  
22 1     1   79 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         11  
23 1     1   84 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         5  
24 1     1   1165 use Moo;
  1         2  
  1         5  
25              
26             extends('Locale::CLDR::Locales::Sq::Any');
27             has 'currencies' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => sub { {
32             'MKD' => {
33             symbol => 'den',
34             },
35             } },
36             );
37              
38              
39             has 'day_period_data' => (
40             is => 'ro',
41             isa => CodeRef,
42             init_arg => undef,
43             default => sub { sub {
44             # Time in hhmm format
45             my ($self, $type, $time, $day_period_type) = @_;
46             $day_period_type //= 'default';
47             SWITCH:
48             for ($type) {
49             if ($_ eq 'gregorian') {
50             if($day_period_type eq 'default') {
51             return 'midnight' if $time == 0;
52             return 'noon' if $time == 1200;
53             return 'afternoon1' if $time >= 1200
54             && $time < 1800;
55             return 'evening1' if $time >= 1800
56             && $time < 2400;
57             return 'morning1' if $time >= 400
58             && $time < 900;
59             return 'morning2' if $time >= 900
60             && $time < 1200;
61             return 'night1' if $time >= 0
62             && $time < 400;
63             }
64             if($day_period_type eq 'selection') {
65             return 'afternoon1' if $time >= 1200
66             && $time < 1800;
67             return 'evening1' if $time >= 1800
68             && $time < 2400;
69             return 'morning1' if $time >= 400
70             && $time < 900;
71             return 'morning2' if $time >= 900
72             && $time < 1200;
73             return 'night1' if $time >= 0
74             && $time < 400;
75             }
76             last SWITCH;
77             }
78             }
79             } },
80             );
81              
82             around day_period_data => sub {
83             my ($orig, $self) = @_;
84             return $self->$orig;
85             };
86              
87             has 'eras' => (
88             is => 'ro',
89             isa => HashRef,
90             init_arg => undef,
91             default => sub { {
92             'gregorian' => {
93             },
94             } },
95             );
96              
97             has 'date_formats' => (
98             is => 'ro',
99             isa => HashRef,
100             init_arg => undef,
101             default => sub { {
102             'gregorian' => {
103             },
104             } },
105             );
106              
107             has 'time_formats' => (
108             is => 'ro',
109             isa => HashRef,
110             init_arg => undef,
111             default => sub { {
112             'gregorian' => {
113             'full' => q{HH:mm:ss zzzz},
114             'long' => q{HH:mm:ss z},
115             'medium' => q{HH:mm:ss},
116             'short' => q{HH:mm},
117             },
118             } },
119             );
120              
121             has 'datetime_formats' => (
122             is => 'ro',
123             isa => HashRef,
124             init_arg => undef,
125             default => sub { {
126             'gregorian' => {
127             },
128             } },
129             );
130              
131             has 'datetime_formats_available_formats' => (
132             is => 'ro',
133             isa => HashRef,
134             init_arg => undef,
135             default => sub { {
136             } },
137             );
138              
139             has 'datetime_formats_append_item' => (
140             is => 'ro',
141             isa => HashRef,
142             init_arg => undef,
143             default => sub { {
144             } },
145             );
146              
147             has 'datetime_formats_interval' => (
148             is => 'ro',
149             isa => HashRef,
150             init_arg => undef,
151             default => sub { {
152             } },
153             );
154              
155 1     1   883 no Moo;
  1         2  
  1         4  
156              
157             1;
158              
159             # vim: tabstop=4