-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I am trying out your module. Appear to work great for english, but I can not get the localisation function to work. Is there some spesial trick I have to do?
I did try your example code:
#!/usr/bin/env perl
use strict;
use warnings;
use open qw/ :std :utf8 /;
use POSIX ':locale_h';
use Time::Ago;
my $secs = 86400 * 365 * 10.4;
foreach (qw/ en fr de it ja ru es /) {
setlocale(LC_ALL, '');
$ENV{LANGUAGE} = $_;
print Time::Ago->in_words(86400 * 365 * 10.4), "\n";
}Running it gives me only unlocalised text like this:
over 10 years
over 10 years
over 10 years
over 10 years
over 10 years
over 10 years
over 10 years
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels