File Coverage

blib/lib/DateTime/Format/Human/Duration/Simple/Locale/es.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package DateTime::Format::Human::Duration::Simple::Locale::es;
2 1     1   971 use Moose;
  1         2  
  1         8  
3 1     1   6301 use namespace::autoclean;
  1         2  
  1         9  
4 1     1   60 use utf8;
  1         2  
  1         8  
5              
6             extends 'DateTime::Format::Human::Duration::Simple::Locale';
7              
8             has '+serial_comma' => (
9             default => 0,
10             );
11              
12             override '_build_units' => sub {
13             my $self = shift;
14              
15             return {
16             and => [ 'y' ],
17              
18             year => [ 'año', 'años' ],
19             month => [ 'mes', 'meses' ],
20             week => [ 'semana', 'semanas' ],
21             day => [ 'día', 'días' ],
22             hour => [ 'hora', 'horas' ],
23             minute => [ 'minuto', 'minutos' ],
24             second => [ 'segundo', 'segundos' ],
25             millisecond => [ 'millisegundo', 'millisegundos' ],
26             nanosecond => [ 'nanosegundo', 'nanosegundos' ],
27             };
28             };
29              
30             __PACKAGE__->meta->make_immutable;
31              
32             1;