You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 perluse strict;
use warnings;
useopenqw/ :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
The text was updated successfully, but these errors were encountered:
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:
Running it gives me only unlocalised text like this:
The text was updated successfully, but these errors were encountered: