File Coverage

blib/lib/Locale/CLDR/Locales/Sv/Latn/Fi.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::Sv::Latn::Fi - Package for language Swedish
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Sv::Latn::Fi;
10             # This file auto generated from Data\common\main\sv_FI.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1658 use strict;
  1         3  
  1         44  
14 1     1   6 use warnings;
  1         2  
  1         50  
15 1     1   6 use version;
  1         2  
  1         7  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   200 use v5.12.0;
  1         4  
20 1     1   9 use mro 'c3';
  1         1  
  1         8  
21 1     1   42 use utf8;
  1         2  
  1         7  
22 1     1   75 use feature 'unicode_strings';
  1         2  
  1         129  
23 1     1   8 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         8  
24 1     1   3130 use Moo;
  1         2  
  1         8  
25              
26             extends('Locale::CLDR::Locales::Sv::Latn');
27             has 'display_name_script' => (
28             is => 'ro',
29             isa => CodeRef,
30             init_arg => undef,
31             default => sub {
32             sub {
33             my %scripts = (
34             'Arab@alt=variant' => 'persisk-arabiska',
35              
36             );
37             if ( @_ ) {
38             return $scripts{$_[0]};
39             }
40             return \%scripts;
41             }
42             }
43             );
44              
45             has 'display_name_key' => (
46             is => 'ro',
47             isa => HashRef[Str],
48             init_arg => undef,
49             default => sub {
50             {
51             'timezone' => 'tidszon',
52              
53             }
54             },
55             );
56              
57             has 'display_name_type' => (
58             is => 'ro',
59             isa => HashRef[HashRef[Str]],
60             init_arg => undef,
61             default => sub {
62             {
63             'collation' => {
64             'big5han' => q{kinesiska i big5-sorteringsordning},
65             'gb2312han' => q{kinesiska i gb2312-sorteringsordning},
66             'pinyin' => q{kinesiska i pinyin-sorteringsordning},
67             'stroke' => q{kinesiska i strecksorteringsordning},
68             },
69              
70             }
71             },
72             );
73              
74             has 'units' => (
75             is => 'ro',
76             isa => HashRef[HashRef[HashRef[Str]]],
77             init_arg => undef,
78             default => sub { {
79             'narrow' => {
80             # Long Unit Identifier
81             'speed-kilometer-per-hour' => {
82             'one' => q({0} km/h),
83             'other' => q({0} km/h),
84             },
85             # Core Unit Identifier
86             'kilometer-per-hour' => {
87             'one' => q({0} km/h),
88             'other' => q({0} km/h),
89             },
90             },
91             } }
92             );
93              
94             has 'number_symbols' => (
95             is => 'ro',
96             isa => HashRef,
97             init_arg => undef,
98             default => sub { {
99             'latn' => {
100             'timeSeparator' => q(.),
101             },
102             } }
103             );
104              
105             has 'calendar_quarters' => (
106             is => 'ro',
107             isa => HashRef,
108             init_arg => undef,
109             default => sub { {
110             'gregorian' => {
111             'format' => {
112             abbreviated => {0 => 'Q1',
113             1 => 'Q2',
114             2 => 'Q3',
115             3 => 'Q4'
116             },
117             },
118             },
119             } },
120             );
121              
122             has 'day_period_data' => (
123             is => 'ro',
124             isa => CodeRef,
125             init_arg => undef,
126             default => sub { sub {
127             # Time in hhmm format
128             my ($self, $type, $time, $day_period_type) = @_;
129             $day_period_type //= 'default';
130             SWITCH:
131             for ($type) {
132             if ($_ eq 'gregorian') {
133             if($day_period_type eq 'default') {
134             return 'midnight' if $time == 0;
135             return 'afternoon1' if $time >= 1200
136             && $time < 1800;
137             return 'evening1' if $time >= 1800
138             && $time < 2400;
139             return 'morning1' if $time >= 500
140             && $time < 1000;
141             return 'morning2' if $time >= 1000
142             && $time < 1200;
143             return 'night1' if $time >= 0
144             && $time < 500;
145             }
146             if($day_period_type eq 'selection') {
147             return 'afternoon1' if $time >= 1200
148             && $time < 1800;
149             return 'evening1' if $time >= 1800
150             && $time < 2400;
151             return 'morning1' if $time >= 500
152             && $time < 1000;
153             return 'morning2' if $time >= 1000
154             && $time < 1200;
155             return 'night1' if $time >= 0
156             && $time < 500;
157             }
158             last SWITCH;
159             }
160             }
161             } },
162             );
163              
164             around day_period_data => sub {
165             my ($orig, $self) = @_;
166             return $self->$orig;
167             };
168              
169             has 'eras' => (
170             is => 'ro',
171             isa => HashRef,
172             init_arg => undef,
173             default => sub { {
174             'gregorian' => {
175             },
176             } },
177             );
178              
179             has 'date_formats' => (
180             is => 'ro',
181             isa => HashRef,
182             init_arg => undef,
183             default => sub { {
184             'gregorian' => {
185             },
186             } },
187             );
188              
189             has 'time_formats' => (
190             is => 'ro',
191             isa => HashRef,
192             init_arg => undef,
193             default => sub { {
194             'gregorian' => {
195             },
196             } },
197             );
198              
199             has 'datetime_formats' => (
200             is => 'ro',
201             isa => HashRef,
202             init_arg => undef,
203             default => sub { {
204             'gregorian' => {
205             },
206             } },
207             );
208              
209             has 'datetime_formats_available_formats' => (
210             is => 'ro',
211             isa => HashRef,
212             init_arg => undef,
213             default => sub { {
214             'gregorian' => {
215             Bhm => q{h.mm B},
216             Bhms => q{h.mm.ss B},
217             EBhm => q{E h.mm B},
218             EBhms => q{E h.mm.ss B},
219             EHm => q{E HH.mm},
220             EHms => q{E HH.mm.ss},
221             Ehm => q{E h.mm a},
222             Ehms => q{E h.mm.ss a},
223             Hm => q{HH.mm},
224             Hms => q{HH.mm.ss},
225             Hmsv => q{HH.mm.ss v},
226             Hmv => q{HH.mm v},
227             MEd => q{E d.M},
228             MMd => q{d.M},
229             MMdd => q{dd.MM},
230             Md => q{d.M},
231             hm => q{h.mm a},
232             hms => q{h.mm.ss a},
233             hmsv => q{h.mm.ss a v},
234             hmv => q{h.mm a v},
235             ms => q{mm.ss},
236             },
237             } },
238             );
239              
240             has 'datetime_formats_append_item' => (
241             is => 'ro',
242             isa => HashRef,
243             init_arg => undef,
244             default => sub { {
245             } },
246             );
247              
248             has 'datetime_formats_interval' => (
249             is => 'ro',
250             isa => HashRef,
251             init_arg => undef,
252             default => sub { {
253             } },
254             );
255              
256 1     1   2854 no Moo;
  1         47  
  1         8  
257              
258             1;
259              
260             # vim: tabstop=4