File Coverage

blib/lib/Time/Duration/Concise/Locale/ja.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Time::Duration::Concise::Locale::ja;
2              
3 2     2   1449 use 5.006;
  2         7  
4 2     2   11 use strict;
  2         4  
  2         47  
5 2     2   9 use warnings FATAL => 'all';
  2         4  
  2         52  
6 2     2   9 use utf8;
  2         4  
  2         8  
7              
8             our $VERSION = '2.62'; ## VERSION
9              
10             =head1 NAME
11              
12             Time::Duration::Concise::Locale::ja - Japanese locale translation.
13              
14             =head1 DESCRIPTION
15              
16             Time::Duration::Concise uses Time::Duration::Concise::Locale::ja to localize concise time duration string representation.
17              
18             =head1 METHODS
19              
20             =head2 translation
21              
22             Localized translation hash
23              
24             =cut
25              
26             sub translation {
27 2     2 1 8 my ($self) = @_;
28             return {
29 2         15 'second' => '秒',
30             'seconds' => '秒',
31             'minute' => '分',
32             'minutes' => '分',
33             'hour' => '時間',
34             'hours' => '時間',
35             'day' => '日',
36             'days' => '日',
37             'month' => '月',
38             'months' => 'ヶ月',
39             'year' => '年',
40             };
41             }
42              
43             =head1 AUTHOR
44              
45             Binary.com, C<< >>
46              
47             =cut
48              
49             1; # End of Time::Duration::Concise::Locale::ja