File Coverage

blib/lib/Locale/CLDR/Locales/Dv.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod n/a
total 43 43 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1 NAME
4              
5             Locale::CLDR::Locales::Dv - Package for language Divehi
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Dv;
10             # This file auto generated from Data\common\main\dv.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1736908 use strict;
  1         4  
  1         47  
14 1     1   7 use warnings;
  1         2  
  1         71  
15 1     1   7 use version;
  1         32  
  1         10  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   151 use v5.12.0;
  1         7  
20 1     1   7 use mro 'c3';
  1         2  
  1         10  
21 1     1   38 use utf8;
  1         2  
  1         9  
22 1     1   121 use feature 'unicode_strings';
  1         3  
  1         185  
23 1     1   11 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         13  
24 1     1   3200 use Moo;
  1         2  
  1         17  
25              
26             extends('Locale::CLDR::Locales::Root');
27             has 'display_name_language' => (
28             is => 'ro',
29             isa => CodeRef,
30             init_arg => undef,
31             default => sub {
32             sub {
33             my %languages = (
34             'dv' => 'ދިވެހިބަސް',
35              
36             );
37             if (@_) {
38             return $languages{$_[0]};
39             }
40             return \%languages;
41             }
42             },
43             );
44              
45             has 'display_name_region' => (
46             is => 'ro',
47             isa => HashRef[Str],
48             init_arg => undef,
49             default => sub {
50             {
51             'MV' => 'ދިވެހި ރާއްޖެ',
52              
53             }
54             },
55             );
56              
57             has 'text_orientation' => (
58             is => 'ro',
59             isa => HashRef[Str],
60             init_arg => undef,
61             default => sub { return {
62             lines => '',
63             characters => 'right-to-left',
64             }}
65             );
66              
67             has 'characters' => (
68             is => 'ro',
69             isa => HashRef,
70             init_arg => undef,
71             default => $^V ge v5.18.0
72             ? eval <<'EOT'
73             sub {
74             no warnings 'experimental::regex_sets';
75             return {
76             auxiliary => qr{[‌‍ ޙ ޚ ޜ ޢ ޣ ޥ ޛ ޘ ޠ ޡ ޤ ޝ ޞ ޟ ޱ]},
77             index => ['ހ', 'ށ', 'ނ', 'ރ', 'ބ', 'ޅ', 'ކ', 'އ', 'ވ', 'މ', 'ފ', 'ދ', 'ތ', 'ލ', 'ގ', 'ޏ', 'ސ', 'ޑ', 'ޒ', 'ޓ', 'ޔ', 'ޕ', 'ޖ', 'ޗ'],
78             main => qr{[ހ ށ ނ ރ ބ ޅ ކ އ ވ މ ފ ދ ތ ލ ގ ޏ ސ ޑ ޒ ޓ ޔ ޕ ޖ ޗ ަ ާ ި ީ ު ޫ ެ ޭ ޮ ޯ ް]},
79             };
80             },
81             EOT
82             : sub {
83             return { index => ['ހ', 'ށ', 'ނ', 'ރ', 'ބ', 'ޅ', 'ކ', 'އ', 'ވ', 'މ', 'ފ', 'ދ', 'ތ', 'ލ', 'ގ', 'ޏ', 'ސ', 'ޑ', 'ޒ', 'ޓ', 'ޔ', 'ޕ', 'ޖ', 'ޗ'], };
84             },
85 1     1   239 );
  1         2  
  1         259  
86              
87              
88             has native_numbering_system => (
89             is => 'ro',
90             isa => Str,
91             init_arg => undef,
92             default => 'arab',
93             );
94              
95             has 'number_symbols' => (
96             is => 'ro',
97             isa => HashRef,
98             init_arg => undef,
99             default => sub { {
100             'arab' => {
101             'list' => q(،),
102             },
103             'latn' => {
104             'list' => q(,),
105             },
106             } }
107             );
108              
109             has 'number_formats' => (
110             is => 'ro',
111             isa => HashRef,
112             init_arg => undef,
113             default => sub { {
114             decimalFormat => {
115             'default' => {
116             'standard' => {
117             'default' => '#,##,##0.###',
118             },
119             },
120             },
121             percentFormat => {
122             'default' => {
123             'standard' => {
124             'default' => '#,##,##0%',
125             },
126             },
127             },
128             } },
129             );
130              
131             has 'currencies' => (
132             is => 'ro',
133             isa => HashRef,
134             init_arg => undef,
135             default => sub { {
136             'MVR' => {
137             symbol => 'ރ.',
138             },
139             } },
140             );
141              
142              
143             has 'eras' => (
144             is => 'ro',
145             isa => HashRef,
146             init_arg => undef,
147             default => sub { {
148             'generic' => {
149             },
150             'gregorian' => {
151             },
152             } },
153             );
154              
155             has 'date_formats' => (
156             is => 'ro',
157             isa => HashRef,
158             init_arg => undef,
159             default => sub { {
160             'generic' => {
161             'full' => q{EEEE d MMMM y G},
162             'long' => q{d MMMM y G},
163             'medium' => q{dd-MM-y G},
164             'short' => q{d-M-yy GGGGG},
165             },
166             'gregorian' => {
167             'full' => q{EEEE d MMMM y},
168             'long' => q{d MMMM y},
169             'medium' => q{dd-MM-y},
170             'short' => q{d-M-yy},
171             },
172             } },
173             );
174              
175             has 'time_formats' => (
176             is => 'ro',
177             isa => HashRef,
178             init_arg => undef,
179             default => sub { {
180             'generic' => {
181             },
182             'gregorian' => {
183             'full' => q{HH:mm:ss zzzz},
184             'long' => q{HH:mm:ss z},
185             'medium' => q{HH:mm:ss},
186             'short' => q{HH:mm},
187             },
188             } },
189             );
190              
191             has 'datetime_formats' => (
192             is => 'ro',
193             isa => HashRef,
194             init_arg => undef,
195             default => sub { {
196             'generic' => {
197             },
198             'gregorian' => {
199             },
200             } },
201             );
202              
203             has 'datetime_formats_available_formats' => (
204             is => 'ro',
205             isa => HashRef,
206             init_arg => undef,
207             default => sub { {
208             } },
209             );
210              
211             has 'datetime_formats_append_item' => (
212             is => 'ro',
213             isa => HashRef,
214             init_arg => undef,
215             default => sub { {
216             } },
217             );
218              
219             has 'datetime_formats_interval' => (
220             is => 'ro',
221             isa => HashRef,
222             init_arg => undef,
223             default => sub { {
224             } },
225             );
226              
227 1     1   2316 no Moo;
  1         3  
  1         6  
228              
229             1;
230              
231             # vim: tabstop=4